Game Development Community

Racing SDK question

by Dustin Mullen · in Technical Issues · 11/27/2007 (8:53 am) · 1 replies

How would I program the vehicles in the racing SDK to take damage from running into an object or projectile damage. Also, why doesn't the healthbarhud in the GUI menu work with the racing kit? I'm guessing it has something to do with the vehicle not being setup to take damage but rather just race around. Would anyone like to explain?

#1
12/13/2007 (7:41 am)
*Sorry to ressurect the thread***

From my understanding, the GUIHealthBarHud was setup to work with the player class, and the Speedometer was setup to work with the VehiclePlayer class. You would need to port one of the 2 to the other side to get the effect of say HealthBar on VehiclePlayerClass.

To use damage on the vehicle, in the vehicle's datablock, use the
VehicleDatablockname::OnCollision(%this){ Code here }