Skip to content
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

ParameterTypeDefaultDescription
_object ObjectobjNull Object to prevent destruction of.

Return value

Number - HandleDamage EH ID

Examples

[this] call vn_ms_fnc_preventDestruction

Documented by Wyqer, veteran29.