Vn_ms_fnc_preventDestruction

From Savage Game Design Wiki
Revision as of 23:11, 4 May 2022 by Slow (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

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