land: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replace - "</dt>" to "")
m (Text replace - "</dd>" to "")
Line 40: Line 40:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 4, 2006 - 10:56</dd>
<dd class="notedate">Posted on August 4, 2006 - 10:56
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''


Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in ArmA).
Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in ArmA).
</dd>


<dd class="notedate"></dd>
 
<dd class="notedate">
<dt class="note">'''[[User:=\SNKMAN/=|=\SNKMAN/=]]'''
<dt class="note">'''[[User:=\SNKMAN/=|=\SNKMAN/=]]'''
<dd class="note">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.
<dd class="note">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.
Line 66: Line 66:
};
};
</pre>
</pre>
</dd>
 


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 13:35, 21 October 2011

Hover & click on the images for description

Description

Description:
Force helicopter landing. Landing mode may be:
  • "LAND" (complete stop)
  • "GET IN" (hovering very low, for another unit to get in)
  • "GET OUT" (hovering low,for another unit to get out)
  • "NONE" (cancel a landing) Available since ArmA 2 57463 build.
Groups:
Uncategorised

Syntax

Syntax:
helicopter land mode
Parameters:
helicopter: Object
mode: String
Return Value:
Nothing

Examples

Example 1:
_cobraOne land "LAND"

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on August 4, 2006 - 10:56
hardrock
Notes from before the conversion: Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in ArmA).
=\SNKMAN/=
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 (getPos _destination);

sleep 3;

while { ( (alive _helicopter) && !(unitReady _helicopter) ) } do
{
       sleep 1;
};

if (alive _helicopter) then
{
       _helicopter land "LAND";
};


Bottom Section