[HELP] NPC Attack - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] NPC Attack (
/showthread.php?tid=631852)
[HELP] NPC Attack -
JhefTFJ - 05.04.2017
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?
Re: [HELP] NPC Attack -
DRIFT_HUNTER - 05.04.2017
Depends on a plugin. But both RNPC and FCNPC have example scripts that show you how to do such thing
Re: [HELP] NPC Attack -
JhefTFJ - 05.04.2017
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?
Re: [HELP] NPC Attack -
raydx - 06.04.2017
https://github.com/ziggi/FCNPC#natives
Look at:
FCNPC_AimAtPlayer
FCNPC_MeleeAttack
FCNPC_TriggerWeaponShot
Re: [HELP] NPC Attack -
JhefTFJ - 06.04.2017
Thank!