Posts: 303
Threads: 71
Joined: Mar 2011
There has got to be something to delay my cars respawning. So when I exit out my vehicle for a 5-10 seconds, I the car respawns back to its original place. How do I delay my cars from respawning in game? And I'm talking about every car, each car does this. +REP.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
iLcke, -1 works.
Just set respawn_delay in AddStaticVehicleEx/CreateVehicle to -1. That prevents respawning.
Posts: 303
Threads: 71
Joined: Mar 2011
How can I set it to 10 minutes? And is there a faster way to do it to set at timer for all cars at once?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
respawn_delay is in seconds, so set it to 60*10.
Posts: 303
Threads: 71
Joined: Mar 2011
Okay thanks MP2 and is there a way to set it for all vehicle instead of putting it next to each vehicle line?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You could use a define
#define RESPAWN_DELAY 60*10
Then just put that at the end of all your CreateVehicle lines.