vehicle_door_prevent_damage_detach(vehicle_name, door_name[, prevent])

Parameters:
vehicle_name (string) name of the vehicle
door_name (string) name of the "door" component (see notes below)
prevent (boolean, optional) set to true to prevent the door from detaching, or false to allow it to detach (defaults to true)
 
Returns:
none

Description:
Prevent/allow a vehicle "door" from detaching due to damage received.

Note that any hinged component on a vehicle can be considered a "door" (e.g.: the trunk), not just the actual passenger doors. Consequently, this function can be used on any such components.

 

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