on_vehicle_tire_damage(func_name, obj_name)

Parameters:
func_name (string) name of the function, or "" to unregister the event
obj_name (string) name of the vehicle
 
Returns:
none

Description:
Register a callback function for when a vehicle's tire is damaged/destroyed

For vehicles, when the callback is executed, the following parameters are passed to it:
 - (string) name of the vehicle that was damaged
 - (string) name of the character or vehicle responsible for causing the damage
 - (string) name of the event/object that caused the damage
            This can be: "car", "explosion", "bullet", "level object", "melee", "world", "human", "fire", "wind", "kneecapper", "sonic", ""
 - (int)    amount of damage applied
 - (int)    number of hit points left in the tire

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:16