VN_ms_fnc_preventDestruction
← 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 the executing machine. Eventhandler id is stored in the object under "vn_preventDamageEh" variable name.
Syntax
- Syntax
- [obj] call VN_ms_fnc_preventDestruction
- Parameters
- obj: Object - object to make non-fully-destructible
- Return value
- Number - HandleDamage event handler id
Examples
- Example 1
[sogJeep] call VN_ms_fnc_preventDestruction;