Game Development Community

Player in WheeledVehile Damage node?

by Travis Vroman · in Torque Game Engine · 11/06/2002 (4:03 am) · 2 replies

Does anybody know how or if a Damage Node needs to be added to the car model or the Player model to allow them to aquire damage while in a WheeledVehicle. I was thinking that possibly I would have to make a modification to player.cs or possibly car.cs. Can anybody point me somewhere that I can find an answer?

Also, Is there an alternate control mode that can be used while in a WheeledVehicle.

-B

#1
11/06/2002 (4:47 am)
in car.cs in this datablock :

datablock WheeledVehicleData(DefaultCar)

isProtectedMountPoint[0] = false;

That would make the pilot(driver) be able to be damaged while in the car. [1] would make the next passenger mount be able to take damage [2],[3] etc. for the amount of mount points you have.
#2
11/06/2002 (4:54 am)
Hey in order for a vehicle to take damage you need the LOS-# and LOScol-# dummy objects. Check out my vehicle tutorials on making a wheeled vehicle located at http://tork.zenkel.com/tutorials/vehicles/.

It should give you enough information for making a model that can take damage. Its a work in progress so let me know if something isnt clear or if you have problems with it.

You might also want to check out my yahoo group (TGE-V). We are trying to really work on vehicles within torque.

Loony