NPC: Stop just one - how? - 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: Stop just one - how? (
/showthread.php?tid=371701)
NPC: Stop just one - how? -
lidor5353 - 24.08.2012
Hey all.
I am working on something and need to use some NPCs.
The problam is that I have (to ex.) 6 bots in cars, and i want randomly to stop just one of them.
I've seen the function of pause recording, but this function has no parameters, so how can i stop one of many NPCs?
Please help me figure it out,
Lidor.
Re: NPC: Stop just one - how? -
lidor5353 - 25.08.2012
BUMP
Re: NPC: Stop just one - how? -
Roko_foko - 25.08.2012
You can stop one NPC by using StopRecordingPlayback in NPC's npcmode(code/script). But if you stop it, it wont be able to start moving again from that position. And if you want to stop it from your gamemode you need to send some sign to the npcmode. ( that you could do by using SendClientMessage)
Re: NPC: Stop just one - how? -
lidor5353 - 25.08.2012
Quote:
Originally Posted by Roko_foko
You can stop one NPC by using StopRecordingPlayback in NPC's npcmode(code/script). But if you stop it, it wont be able to start moving again from that position. And if you want to stop it from your gamemode you need to send some sign to the npcmode. ( that you could do by using SendClientMessage)
|
I can use the Pause, but you didn't get me.
I have 6 NPCs drivers, and I want that just one of them will stop/pause, but the function does not get any parameters (like playerid, just for NPC).
So how can I stop SPECIFIC NPC?