Posts: 25
Threads: 10
Joined: Jan 2009
Reputation:
0
Hello!
After vehicle is destroyed, it will be re spawned immediately. Is there a way to set delay on this?
Posts: 43
Threads: 0
Joined: Aug 2011
yup ... Destroy and delete the vehicle, then recreate based on a ticker.
Posts: 43
Threads: 0
Joined: Aug 2011
no, Ticker ... Timers = Evil!
Most cores usually already have a timer running based on 1 second intervals ... ists easy enough, to simply use that existing timer, add a variable ticker, to kick off a function.
As you've seen in my core, I avoid timers as much as possible.
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Can't u just change the spawn time when adding a static vehicle? (or createvehicle?)
that's pretty much the easiest way...
Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
Errrmmm.. Guys, I was first to talk about AddStaticVehicleEx :P
Posts: 43
Threads: 0
Joined: Aug 2011
because your limiting your options...
lets say, after a car blows up ... you want it gone for like 1 hour ...
you can simply loop any array, and check for a timestamp that is out of date, then recreate the vehicle based on those saved variables.
Its pointless to have timers floating around for an hour, not to mention the possibility of all the timer collisions ..