Vehicle respawn
by Matt Sanders · in Torque Game Engine · 02/17/2005 (8:07 pm) · 3 replies
First thing I did was search the forums for information on how to make vehicles destructable. I did not find anything that worked so I finally came up with some functions of my own to make it work. The main question that I am having now is how can I respawn a vehicle to be in the same place that It started when I begin the level.
I do not want to use vehicle spawn points because I placed the vehicles where I want them to show up in the mission editor and saved them there.
I also would like to know what function Torque calls to read the vehicle placement from the mission files and place them in the level to begin with. Any help or tips on either vehicle respawns or destruction would be greatly appreciated. I am very surprised their is not a resource on this subject.
EDIT: I would also like to know how the engine uses the datablocks respawn option. I have it set to respawn = "1"; yet it does nothing. :)
I do not want to use vehicle spawn points because I placed the vehicles where I want them to show up in the mission editor and saved them there.
I also would like to know what function Torque calls to read the vehicle placement from the mission files and place them in the level to begin with. Any help or tips on either vehicle respawns or destruction would be greatly appreciated. I am very surprised their is not a resource on this subject.
EDIT: I would also like to know how the engine uses the datablocks respawn option. I have it set to respawn = "1"; yet it does nothing. :)
#2
02/27/2005 (12:37 pm)
Use spawn points but just dont specify a visible marker.. make them invisible so that it will respwn but not have a marker..
#3
I may end up doing this but I just feel there must be a way. I know you can do it with static objects and Torque must get the info from the mis file some how.
thank you for the reply.
02/27/2005 (1:30 pm)
Well I already had considered the use of spawn points I just do not like the way they are used as much. I like to be able to place the vehicle and pose it how I want and save rather then move the spawn point and guess where I need it.I may end up doing this but I just feel there must be a way. I know you can do it with static objects and Torque must get the info from the mis file some how.
thank you for the reply.
Torque Owner Matt Sanders