NPC Vehicle sync?
#1

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

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");
}

Reply
#3

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

Well you have to use more than one recording for that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)