Vn_ms_fnc_preventDestruction
Jump to navigation
Jump to search
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
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
- Syntax
- [_object] call vn_ms_fnc_preventDestruction;
- Parameters
- _object: Object - (Optional, default
objNull
) Object to prevent destruction of. - Return value
- Number - HandleDamage EH ID
Examples
- Example 1
- [this] call vn_ms_fnc_preventDestruction