Make a Spawn Position follow a pattern
#2

Well yes it is possible, my thought was with having a Variable and it starts off at 0 like so:
pawn Код:
new SpawnPos = 0;
Then when Spawn a car, you would use for example:
pawn Код:
if(SpawnPos == 0)
{
//Spawncar on X Y Z
SpawnPos = 1;
return 1;
}
else if(SpawnPos == 1)
{
//Second Car Spawn
SpawnPos = 2;
return 1;
}
Something like that, and just change the Coordinates for each car, then with the last car coordinate, instead of setting SpawnPos = Next Number
set it back to 0. like so:
SpawnPos = 0;

This would loop the Spawn.
Basic and easy.
Reply


Messages In This Thread
Make a Spawn Position follow a pattern - by caribe88 - 30.03.2012, 17:59
Re: Make a Spawn Position follow a pattern - by Deduction - 30.03.2012, 18:20
Re: Make a Spawn Position follow a pattern - by caribe88 - 30.03.2012, 18:25

Forum Jump:


Users browsing this thread: 2 Guest(s)