land: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(59 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|arg= local |= Arguments in MP
|game3= arma1
|eff= global|= Effects in MP
|version3= 1.00
____________________________________________________________________________________________


| Force helicopter landing. Landing mode may be:
|game4= arma2
|version4= 1.00


* "LAND" (complete stop)
|game5= arma2oa
* "GET IN" (hovering very low, for another unit to get in)
|version5= 1.50
* "GET OUT" (hovering low,for another unit to get out)
* "NONE" (cancel a landing) ''Available since ArmA 2 57463 build.''
|= Description
____________________________________________________________________________________________


| helicopter '''land''' mode |= Syntax
|game6= tkoh
|version6= 1.00


|p1= helicopter: [[Object]] |= Parameter 1
|game7= arma3
|version7= 0.50


|p2= mode: [[String]] |= Parameter 2
|arg= local


| [[Nothing]] |= Return value
|eff= global
____________________________________________________________________________________________
 
|x1= <code>_cobraOne '''land''' "LAND"</code> |= Example 1
____________________________________________________________________________________________


| [[landAt]], [[allAirports]] |= See also
|gr1= Unit Control


}}
|descr= Forces a helicopter landing.
 
|s1= helicopter [[land]] mode
 
|p1= helicopter: [[Object]]


<h3 style="display:none">Notes</h3>
|p2= mode: [[String]] - can be one of:
<dl class="command_description">
* "LAND" - Complete stop
<!-- Note Section BEGIN -->
* "GET IN" - Hovering very low, for another unit to get in
* "GET OUT" - Hovering low, for another unit to get out
* {{GVI|arma2|1.00|size= 0.75}} "NONE" - Cancel a landing


<dd class="notedate">Posted on August 4, 2006 - 10:56
|r1= [[Nothing]]
<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).
|x1= <sqf>_cobraOne land "LAND";</sqf>


|seealso= [[landAt]] [[allAirports]]
}}


<dd class="notedate">
{{Note
<dt class="note">'''[[User:=\SNKMAN/=|=\SNKMAN/=]]'''
|user= Hardrock
<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.
|timestamp= 20060804105600
|text= ''Notes from before the conversion:''
Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in {{arma1}}).
}}
 
{{Note
|user= SNKMAN
|timestamp= 20100926120200
|text= 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.
You can fix a landing bug by using a short delay bevore checking the [[unitReady]] command.


<pre>
<sqf>
_helicopter move (getPos _destination);
_helicopter move getPosATL _destination;
 
sleep 3;
sleep 3;
 
while { alive _helicopter && not unitReady _helicopter } do
while { ( (alive _helicopter) && !(unitReady _helicopter) ) } do
{
{
      sleep 1;
sleep 1;
};
};


if (alive _helicopter) then
if (alive _helicopter) then
{
{
      _helicopter land "LAND";
_helicopter land "LAND";
};
};
</pre>
</sqf>
 
}}
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|LAND]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|LAND]]
[[Category:Scripting Commands OFP 1.46|LAND]]
[[Category:Scripting Commands ArmA|LAND]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:46, 20 March 2023

Hover & click on the images for description

Description

Description:
Forces a helicopter landing.
Groups:
Unit Control

Syntax

Syntax:
helicopter land mode
Parameters:
helicopter: Object
mode: String - can be one of:
  • "LAND" - Complete stop
  • "GET IN" - Hovering very low, for another unit to get in
  • "GET OUT" - Hovering low, for another unit to get out
  • Logo A2.png1.00 "NONE" - Cancel a landing
Return Value:
Nothing

Examples

Example 1:
_cobraOne land "LAND";

Additional Information

See also:
landAt allAirports

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
Hardrock - c
Posted on Aug 04, 2006 - 10:56 (UTC)
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).
SNKMAN - c
Posted on Sep 26, 2010 - 12:02 (UTC)
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"; };