land: Difference between revisions
| m (template:command argument fix) | Killzone Kid (talk | contribs)  No edit summary | ||
| (59 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| | ofp |=  | |game1= ofp | ||
| |version1= 1.00 | |||
| |1.00 | |game2= ofpe | ||
| |version2= 1.00 | |||
| | | |game3= arma1 | ||
| | | |version3= 1.00 | ||
| |  | |game4= arma2 | ||
| |version4= 1.00 | |||
| |game5= arma2oa | |||
| |version5= 1.50 | |||
| | | |||
| |  | |game6= tkoh | ||
| |version6= 1.00 | |||
| | | |game7= arma3 | ||
| |version7= 0.50 | |||
| | | |arg= local | ||
| |  | |eff= global | ||
| |  | |gr1= Unit Control | ||
| |descr= 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]]. | |||
| |s1= helicopter [[land]] mode | |||
| |p1= helicopter: [[Object]] helicopter or VTOL | |||
| |p2= 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 | |||
| * {{GVI|arma2|1.00|size= 0.75}} "NONE" - Cancel a landing | |||
| |r1= [[Nothing]] | |||
| |x1= <sqf>_cobraOne land "LAND";</sqf> | |||
| |seealso= [[landAt]] [[allAirports]] | |||
| }} | |||
| {{Note | |||
| |user= Hardrock | |||
| |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. | ||
| < | <sqf> | ||
| _helicopter move  | _helicopter move getPosATL _destination; | ||
| sleep 3; | sleep 3; | ||
| while { alive _helicopter && not unitReady _helicopter } do | |||
| while {  | |||
| { | { | ||
| 	sleep 1; | |||
| }; | }; | ||
| if (alive _helicopter) then | if (alive _helicopter) then | ||
| { | { | ||
| 	_helicopter land "LAND"; | |||
| }; | }; | ||
| </ | </sqf> | ||
| }} | |||
Latest revision as of 01:49, 23 June 2025
Description
- Description:
- 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.
- Groups:
- Unit Control
Syntax
- Syntax:
- helicopter land mode
- Parameters:
- helicopter: Object helicopter or VTOL
- 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
 1.00 "NONE" - Cancel a landing 1.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
- 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).
Categories: 
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Control
- Scripting Commands: Global Effect
 
	





