SA-MP Forums Archive
NPC HELP (native samp one) - 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 HELP (native samp one) (/showthread.php?tid=200722)



NPC HELP (native samp one) - Lorenc_ - 19.12.2010

Hey everyone, i was making a script and was wondering, i made a PlayerRuntopoint function but we tried using it on a npc and it fails, it basicly dont run at all... The npc stays at the same position and applys an running animation, anyway of preventing this?


-Lorenc


Re: NPC HELP (native samp one) - Rachael - 19.12.2010

I'm pretty sure native samp npc's can only follow the recording they are associated with, or not move at all.


Re: NPC HELP (native samp one) - Lorenc_ - 19.12.2010

Well is there anyway to move them? without the record file maybe?


Re: NPC HELP (native samp one) - Rachael - 19.12.2010

I havn't tried SetPlayerPos on an npc, but it should work in theory.


Re: NPC HELP (native samp one) - Lorenc_ - 19.12.2010

I've tried to get a npc to me by a command and it fails. There has to be a way of removing the record file and spawning the npc without it, mark me if im incorrect.


Re: NPC HELP (native samp one) - Rachael - 19.12.2010

Just remove this from the npcfile
pawn Код:
public OnNPCspawn()
{
     StartRecordingPlayback ( RECORDING_TYPE, FILE );
}
I tried other ways to load an npc without a recording, for example using RECORDING_TYPE_NONE, but that caused problems for me. It might work for you though.


Re: NPC HELP (native samp one) - Lorenc_ - 19.12.2010

fart