//exit; //temp disable as no chutes available

/*
[] call bis_fnc_hints;

setViewDistance EGG_EVO_avdist;
execFSM "actions\FSM\halo.fsm";
*/

//create an empty thread, to avoid 'BIS_AdvHints_Spawn' being nil at the beginning
if (isNil "BIS_AdvHints_Spawn") then {
	BIS_AdvHints_Spawn = [] spawn {
		waitUntil {false};
	};
};

//temp

if (local player) then
{
	execFSM "actions\FSM\halo.fsm";
	_x=0;
	while {_x < 1} do 
	{
		_playerh = (getposASL player) select 2;
		if (_playerh < 1000) then 
		{
			_actionId101 = player addAction [("<t color='#855009'>" + "#Open Chute" + "</t>"), "actions\chute.sqf",[_this],6, false, true,"test2"];
			_x=1;
		};
		Sleep 1;
	};
	Waituntil {( !(alive player) || (vehicle player != player) )}; 
	Player removeAction _actionID101;

//fix for HALO bug
//	(FindDisplay 46) DisplaySetEventHandler ["keydown","if ((_this select 1) In actionKeys ""TeamSwitch"") then {a = createDialog 'evoUI'}"];

};


