Difference between revisions of "VN ms fnc preventDestruction"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " {{Function" to "Category:TODO {{Function")
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
Line 37: Line 37:
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
  
|s= [] call [[vn_ms_fnc_preventDestruction]];
+
|s= [] call [[vn_ms_fnc_preventDestruction]]
  
 
|p1n=
 
|p1n=

Revision as of 21:21, 20 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

/*
    File: fn_preventVehicleDestruction.sqf
    Author: Wyqer, veteran29
    Date: 2020-07-24
    Last Update: 2020-07-24
    Public: Yes

    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.

    Parameter(s):
        _object - Object to prevent destruction of [OBJECT, defaults to objNull]

    Returns:
        HandleDamage EH ID [NUMBER]

    Example(s):
        [this] call vn_ms_fnc_preventDestruction
*/

#define WHEEL_SELECTIONS ["hitlfwheel", "hitrfwheel", "hitlf2wheel", "hitrf2wheel", "hitlmwheel", "hitrmwheel", "hitlbwheel", "hitrbwheel"]

(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)

Syntax

Syntax
[] call vn_ms_fnc_preventDestruction
Return value
Nothing

Examples

Example 1
-