Page 1 of 1
Respawning self-piloted vehicles
Posted: Sat May 17, 2008 7:26 pm
by Eggman
I have some self-piloted flyers placed in a map as objects (not using vehicle spawns for various reasons) and I would like them to respawn upon their death as flyers ordinarily do when using vehicle spawn points. I'm pretty sure it should be possible, but I haven't been able to do it yet. Here's the section of the .odf I'm looking at:
Now, the section in red should control how soon after its death the object should respawn, correct? I took the line from one of the auto-turret types from the shipped space maps that respawn a minute or two after they have been destroyed and just edited the time value. I assumed that it would work with the flyer class also, but so far I haven't seen any results. Can anyone help?
Re: Respawning self-piloted vehicles
Posted: Sat May 17, 2008 8:21 pm
by Grev
Why wouldnt you use vehicle spawns? Use them, and then set the type of ship you want to be auto piloted, and theres a code to make it self piloted. Look in the Clone Remnant: Rise thread the before last page, one of Calebs posts for the exact script for it.
Re: Respawning self-piloted vehicles
Posted: Sun May 18, 2008 4:41 am
by Aman/Pinguin
He has that code already in his ODF.
Long time since I worked with RespawnTime, but I remember something that the Respawn time has to be very high. (Don't ask me why.) Maybe I'm wrong but you could at least try it.
Anyway, why don't you want to use vehiclespawns?
Re: Respawning self-piloted vehicles
Posted: Sun May 18, 2008 10:37 am
by Eggman
I wasn't using spawn points because for my purposes it was just more efficient to place the vehicles as objects in Zeroeditor. In the time I was waiting for an answer though I decided to just use spawn points for the time being and they work well enough that I can let the question go. Still, if anyone does know if what I was asking is possible, it might be nice to have the knowledge just for future reference.