land: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|1.00
|version1= 1.00
 
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00
 
|game5= arma2oa
 
|version5= 1.51
 
|game6= tkoh
 
|version6= 1.00
 
|game7= arma3
 
|version7= 0.50


|arg= local
|arg= local
|eff= global
|eff= global


|gr1= Unit Control
|gr1= Unit Control


| Force helicopter landing. Landing mode may be:
|descr= Forces a helicopter landing.


* "LAND" (complete stop)
|s1= helicopter '''land''' mode
* "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.''
 
| helicopter '''land''' mode


|p1= helicopter: [[Object]]
|p1= helicopter: [[Object]]


|p2= mode: [[String]]
|p2= mode: [[String]] - Can be:
* "LAND" - Ccomplete 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, '''since {{arma2}}'''


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>_cobraOne '''land''' "LAND"</code>
|x1= <code>_cobraOne '''land''' "LAND"</code>
Line 34: Line 58:
<dd class="notedate">Posted on August 4, 2006 - 10:56</dd>
<dd class="notedate">Posted on August 4, 2006 - 10:56</dd>
<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 {{arma1}}).
Helos will land at the nearest "H" or "Invisible H", if there is one around (within 500m in ArmA).
 
<dt><dt>
<dt><dt>
<dd class="notedate">
<dd class="notedate">
Line 43: Line 65:
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>
<code>_helicopter [[move]] [[getPos]] _destination;
_helicopter move (getPos _destination);
[[sleep]] 3;
 
[[while]] { [[alive]] _helicopter) && ![[unitReady]] _helicopter } [[do]]
sleep 3;
 
while { ( (alive _helicopter) && !(unitReady _helicopter) ) } do
{
{
       sleep 1;
       [[sleep]] 1;
};
};


if (alive _helicopter) then
[[if]] ([[alive]] _helicopter) [[then]]
{
{
       _helicopter land "LAND";
       _helicopter [[land]] "LAND";
};
};</code>
</pre>
 
 
</dl>
</dl>
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 23:56, 16 April 2021

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:
  • "LAND" - Ccomplete 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, since Arma 2
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
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 Armed Assault).
=\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"; };