//ambtent famb ambnest_pos _amb_name actions\removeamb

// by Xeno
//private ["_posamb","_amb_name","_marker1"];
private ["_posamb","_amb_name","_markerLUP"];

if (player in list AirportIn) exitWith {hint "You cannot deploy a Recon HQ in the base"};

if (!isNil "amb" and {alive amb}) exitWith 
{
	hint "You have already established a Recon HQ. You must destroy/remove it to make a new one"
};

player playMove "AinvPknlMstpSlayWrflDnon_medic";
sleep 3;
WaitUntil {animationState player != "AinvPknlMstpSlayWrflDnon_medic"};

if (!(alive player)) exitWith 
{
	amb_pos = [];
};

//amb = "B_MRAP_01_F" createVehicle (position player);
amb = (EGG_EVO_reconHQ select 0) createVehicle (position player);


//Pickup_PK_TK_GUE_EP1
//amb = "PRACS_Pinzgauer_SFOD" createVehicle (position player);
//amb = "HMMWV_M998A2_SOV_DES_EP1" createVehicle (position player);
//PRACS_Pinzgauer_patrol  HMMWV_Armored
//amb = "PRACS_Pinzgauer_patrol" createVehicle (position player);
//amb = "Chenowth" createVehicle (position player);
//amb = "vil_aifv_ypr" createVehicle (position player);
//amb = "HMMWV_M1151_M2_DES_EP1" createVehicle (position player);

private _dir  = getdir player;
amb setdir _dir;
amb_pos = position amb;

clearMagazineCargoGlobal amb;
clearWeaponCargoGlobal amb;

//"HMMWV_Ambulance"
//"LAV25_HQ"

private _amb_name = "Recon HQ";

amb addAction [("<t color='#855009'>" + "#Remove Recon HQ" + "</t>"), "actions\removeamb.sqf",0,0,false,true];
player moveInDriver amb;

if (true) exitWith {};
