How to get script that starts EXACTLY when an NPC's path starts
#9

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
StartRecordingPlayback?
Yeah but doesn't have have to called in the scriptfile in npcmodes I cant call it directly from the gamemode? It doesn't come with a specific ID so I can't use it in the main gamemode (or I'm missing something here)


Quote:
Originally Posted by RelaxCafe
Посмотреть сообщение
I know what you mean mate. Now.. I do not know if there is a function to get the npc's state. Well, what you can do is restart the npc everytime.. Like : OnPlayerSpawn(..){SpawnPlayer(npcid);PutPlayerInVe hicle(playerid,2,2);}
Try that.. Now get the vehicle id the npc is driving. And place it on the first number 2. Plus the the id of the driver(npc).
I hope this worked for you mate..
I'm not sure what you mean man.. I have it put the NPC/Player in the vehicle when the NPC spawns.. but it takes some time to start the recording and im trying to find a way without using a timer as it won't be 100%
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)