NPC: Stop just one - how?
#1

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.
Reply
#2

BUMP
Reply
#3

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)
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)