NPC Vehicle sync? - 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 Vehicle sync? (
/showthread.php?tid=159950)
NPC Vehicle sync? -
Talisman010 - 15.07.2010
Hello there,
I would like to make several driving NPCs with the same recording but with different positions.
Is that possible?
I've tried modifying the vehicle spawn position but no luck with it,
also I've tried making a timer to edit the NPC's position every second but no luck too.
I cannot just use any admin filterscripts to get the NPC to my position as they will be "forced" to go back where they
are driving in the recording.
Thanks
T
Re: NPC Vehicle sync? -
Loppa - 15.07.2010
Instead of connecting the NPC OnFilterscriptInit you create a timer that delay the connection of the second npc. Like this:
Quote:
forward connectnpc();
public OnFilterScriptInit()
{
SetTimer("connectnpc",30000,0);
.......
........
}
public connectnpc()
{
ConnectNPC("YourNPC", "YourNPC");
}
|
Re: NPC Vehicle sync? -
Talisman010 - 15.07.2010
Quote:
Originally Posted by Loppa
Instead of connecting the NPC OnFilterscriptInit you create a timer that delay the connection of the second npc. Like this:
|
Thank you Loppa! This worked well.
However,what i really want to create is another driving NPC with a completely different position..
Actually i would like to create a tank parade with multiple files
Is it possible?
Thanks,
T.
Re: NPC Vehicle sync? -
Loppa - 15.07.2010
Well you have to use more than one recording for that.