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...")
 
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 50: Line 44:
 
|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>
 

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.


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

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