NPC Questions - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC Questions (
/showthread.php?tid=163741)
NPC Questions -
matejdro - 28.07.2010
1. Is there any way to make npc run around? I heard about animation, but my npcs will serve as a target (for weapons) so i guess they won't be hit in animation. I want running to be random, so i can't make a recording.
2. How is damage detection? Does NPCs damage system works simmilar to players?
Sorry if question have been posted, but word "npc" is too short, so i can't search for it.
Re: NPC Questions -
Mauzen - 28.07.2010
ATM npcs can only do prerecorded things. They also have no health/ can get no damage, so you cannot check if they are hit with normal functions. You could only check this by hand, meaning use GetPlayerCameraVector and OnPlayerKeyStateChange to detect if a player shoots.
Re: NPC Questions -
FireCat - 28.07.2010
nope but you can like i dont make them just go around cities make 1 for each citie so san fierro record going around then make the pawno code then vuala
Re: NPC Questions -
matejdro - 28.07.2010
@Mauzen that's sad to hear. I hope features like that would be implemented in the future (is project even active? Last release was 9 months ago). But anyway, thanks for answer.
@Firecat what?