Skip to content
VN_fnc_tunnel_exit

VN_fnc_tunnel_exit

Exits the player from the tunnel, if the player entered then they will be placed on their old position, if not then they will be teleported to the tunnel entrance object.

Syntax

[_tunnel,_caller] call VN_fnc_tunnel_exit;

Parameters

ParameterTypeDefaultDescription
_tunnel ObjectOBJNULL Tunnel object which will be used to get the entry object.
_caller ObjectOBJNULL Unit which is calling the action which will be teleported.

Return value

Boolean - Function reached the end.

Examples

[tunnel, player] call vn_fnc_tunnel_exit;

Documented by Ethan Johnson.