vn_ms_fnc_preventDestruction
vn_ms_fnc_preventDestruction
Adds event handler preventing destruction of the vehicle. Works only if vehicle is local to executing machine. Id of the EH is stored in vn_preventDamageEh variable on the object. If variable “vn_amplifyWheelDamage” is set to true on the vehicle object the damage done to wheels will be highly amplified.
Syntax
[_object] call vn_ms_fnc_preventDestruction;Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
_object |
Object | objNull |
Object to prevent destruction of. |
Return value
Number - HandleDamage EH ID
Examples
[this] call vn_ms_fnc_preventDestruction