Skip to content
VN_fnc_vn_close_doors_on_exit

VN_fnc_vn_close_doors_on_exit

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

[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit;

Parameters

ParameterTypeDefaultDescription
_vehicle ObjectOBJNULL Vehicle that has doors
_role String"" Role of the unit that exited the vehicle
_unit ObjectOBJNULL Unit the called the eventhandler
_turretPath Array[] Role of the unit that exited the vehicle

Return value

Boolean - Function reached the end

Examples

[_vehicle,_role,_unit,_turretPath] call VN_fnc_vn_close_doors_on_exit

Documented by Ethan Johnson.