land: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 10: Line 9:


|gr1= Unit Control |GROUP1=
|gr1= Unit Control |GROUP1=
____________________________________________________________________________________________


| Force helicopter landing. Landing mode may be:  
| Force helicopter landing. Landing mode may be:  
Line 19: Line 17:
* "NONE" (cancel a landing) ''Available since Arma 2 57463 build.''
* "NONE" (cancel a landing) ''Available since Arma 2 57463 build.''
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| helicopter '''land''' mode |SYNTAX=
| helicopter '''land''' mode |SYNTAX=
Line 28: Line 25:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_cobraOne '''land''' "LAND"</code> |EXAMPLE1=
|x1= <code>_cobraOne '''land''' "LAND"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[landAt]], [[allAirports]] |SEEALSO=
| [[landAt]], [[allAirports]] |SEEALSO=

Revision as of 01:36, 17 January 2021

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:
Unit Control

Syntax

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

Examples

Example 1:
_cobraOne land "LAND"

Additional Information

See also:
landAtallAirports

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