NPC help - 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: NPC help (
/showthread.php?tid=364020)
NPC help -
milanosie - 29.07.2012
Hey there,
I'm a complete noob with NPC functions and I just made my first bus driver NPC, driving around town picking up people etc.
But where do I place the part that the recording gets paused when the driver is near another player?
And resumed when it's done,
Should I just use the OnPlayerUpdate in the gamemode, I don't think so because I can't pause recordings from there.
So where should I?
Re: NPC help -
AIped - 29.07.2012
look at the taxi_ls test in the npcmodes folder. there you can see that a timer is used for the npc checking if a player is near,it pauses.