Hardrock
Notes from before the conversion: Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in Armed Assault).
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Forces a helicopter landing. If there is a helipad nearby, the helicopter will attempt to land on it. VTOL he other hand will just land somewhere. To make helicopter or VTOL land on a specific helipad use landAt.
helicopter land mode
Parameters:
helicopter: Object helicopter or VTOL
mode: String - can be one of:
Returns: Nothing
_cobraOne land "LAND";
Notes from before the conversion: Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in Armed Assault).
To make a helicopter LAND correctly and not hovering over the landing position use unitReady to check if the helicopter already has reached his destination. You can fix a landing bug by using a short delay bevore checking the unitReady command.
_helicopter move getPosATL _destination;
sleep 3;
while { alive _helicopter && not unitReady _helicopter } do
{
sleep 1;
};
if (alive _helicopter) then
{
_helicopter land "LAND";
};