Difference between revisions of "Vn ms fnc preventDestruction"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Wyqer, veteran29 |a= |e= |g1= general |d= <pre>Adds event handler preventing destruction of the vehicle. Works only if vehicle is local to exec...") |
(No difference)
|
Latest revision as of 23:11, 4 May 2022
| ← 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