VN_fnc_vn_close_doors_on_exit

From Savage Game Design Wiki
Revision as of 20:03, 26 April 2022 by Slow (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<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>

← 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

</text> <minor/> </revision> </page>