_this setvariable ["Unit","swop_LAAT",true];
_this setvariable ["height",1,true];
_this setvariable ["launchPad",pad_middle,true];
_this addAction ["DO NOT USE IF YOU ARE NOT A PILOT",
{
}
];
_this addAction ["Laat MK1",
{
(_this select 0) setvariable ["Unit","swop_LAAT",true];
}
];
_this addAction ["Laat MK2",
{
(_this select 0) setvariable["Unit","swop_LAATmk2",true];
}
];
_this addAction ["Laat MK2 74th",
{
(_this select 0) setvariable["Unit","swop_LAATmk2_74",true];
}
];
_this addAction ["Laat MK2 104th",
{
(_this select 0) setvariable["Unit","swop_LAATmk2_104",true];
}
];
_this addAction ["Laat MK2 Spec Op",
{
(_this select 0) setvariable["Unit","swop_LAATmk2_spec",true];
}
];
_this addAction ["Laat MK2 ARC",
{
(_this select 0) setvariable["Unit","swop_LAATmk2_ARC",true];
}
];
_this addAction ["Laat Cargo",
{
(_this select 0) setvariable["Unit","swop_LAAT_cargo",true];
}
];
_this addAction ["ARC-170",
{
(_this select 0) setvariable["Unit","swop_arc_t",true];
}
];
_this addAction ["Y-Wing",
{
(_this select 0) setvariable["Unit","swop_ywclones",true];
}
];
_this addAction ["Spawn Vehicle",
{
_item=(_this select 0) getVariable "Unit";
_Z= (_this select 0) getVariable "height";
pad=(_this select 0) getVariable "launchPad";
_unit=createVehicle [_item, [(getPos pad select 0), (getPos pad select 1), (getPos pad select 2)+_Z], [], 0,"CAN_COLLIDE"];
_unit setDir (getDir pad);
hint format["pad %1 unit %2",(position pad),(position _unit)];
}
];