Difference between revisions of "VN fnc vn close doors on exit"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "<page> <title>VN_fnc_vn_close_doors_on_exit</title> <revision> <timestamp>2019-09-16T12:47:00Z</timestamp> <contributor></contributor> <comment>Generated by LM_ex...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<page>
+
 
<title>VN_fnc_vn_close_doors_on_exit</title>
 
<revision>
 
<timestamp>2019-09-16T12:47:00Z</timestamp>
 
<contributor></contributor>
 
<comment>Generated by LM_exportFunctionsToWiki.sqf</comment>
 
<text>
 
 
{{Function
 
{{Function
  
Line 19: Line 13:
 
     When a player leaves the vehicle, close the relevant doors if they're open.
 
     When a player leaves the vehicle, close the relevant doors if they're open.
 
     Fixes a bug whereby `moveOut` before a door animation has completed leaves the door open.
 
     Fixes a bug whereby `moveOut` before a door animation has completed leaves the door open.
 
+
</pre>
 
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
 
 
 
|s= [_vehicle,_role,_unit,_turretPath] call [[VN_fnc_vn_close_doors_on_exit]];
 
|s= [_vehicle,_role,_unit,_turretPath] call [[VN_fnc_vn_close_doors_on_exit]];
  
Line 50: Line 41:
 
|x1= <code>[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit</code>
 
|x1= <code>[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit</code>
 
}}
 
}}
</text>
 
<minor/>
 
</revision>
 
</page>
 

Latest revision as of 20:04, 26 April 2022

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

Description

    When a player leaves the vehicle, close the relevant doors if they're open.
    Fixes a bug whereby `moveOut` before a door animation has completed leaves the door open.

Syntax

Syntax
[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit;
Parameters
_vehicle: Object - (Optional, default OBJNULL) Vehicle that has doors
_role: String - (Optional, default "") Role of the unit that exited the vehicle
_unit: Object - (Optional, default OBJNULL) Unit the called the eventhandler
_turretPath: Array - (Optional, default []) Role of the unit that exited the vehicle
Return value
Boolean - Function reached the end

Examples

Example 1
[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit