[HELP] NPC Attack
#1

I started the creation of some NPCs for my server, but I wanted to know how to do a function that if another player hits the NPC, the NPC will retaliate by attacking him, alias Giving a shot at the player that hit the NPC, someone help me?
Reply
#2

Depends on a plugin. But both RNPC and FCNPC have example scripts that show you how to do such thing
Reply
#3

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Depends on a plugin. But both RNPC and FCNPC have example scripts that show you how to do such thing
Could you send someone else to study?
Reply
#4

https://github.com/ziggi/FCNPC#natives

Look at:

FCNPC_AimAtPlayer
FCNPC_MeleeAttack
FCNPC_TriggerWeaponShot
Reply
#5

Thank!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)