Difference between revisions of "VN fnc vn close doors on exit"
Jump to navigation
Jump to search
Line 13: | 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> | ||
− | |||
|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]]; | ||
Latest revision as of 20:04, 26 April 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
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