VN_fnc_vn_close_doors_on_exit
Jump to navigation
Jump to search
← 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