flyInHeight: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
OverlordZorn (talk | contribs) No edit summary |
||
(29 intermediate revisions by 2 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= Object Manipulation | ||
|descr= Sets the flying altitude for aircraft relatively to the ground surface. Avoid too low altitudes, as helicopters and planes won't evade trees and obstacles on the ground. The default flying altitude is 100 meters. The minimum height is 20 meters. | |||
{{Feature|informative|Height measurement is relative to the pilot and can be approximated with <sqf inline>ASLToAGL eyePos driver _aircraft;</sqf>.}} | |||
|s1= aircraft [[flyInHeight]] altitude | |||
|p1= aircraft: [[Object]] | |||
|p2= altitude: [[Number]] - flying altitude in meters | |||
|r1= [[Nothing]] | |||
|s2= aircraft [[flyInHeight]] [altitude, forced] | |||
|s2since= arma3 2.14 | |||
|p21= aircraft: [[Object]] | |||
|p22= altitude: [[Number]] - flying altitude in meters | |||
|p23= forced: [[Boolean]] - [[true]] to force altitude in all cases, [[false]] to behave like main syntax | |||
|r2= [[Nothing]] | |||
|x1= <sqf>_helicopter flyInHeight 40;</sqf> | |||
|x2= <sqf> | |||
// for altitudes below 10m | |||
_helicopter flyInHeight 5; // helicopter will land | |||
_helicopter flyInHeight [5, true]; // helicopter will hover at 5m altitude | |||
// on a landed helicopter | |||
_helicopter flyInHeight 50; // helicopter will not move until a waypoint is added | |||
_helicopter flyInHeight [50, true]; // helicopter will start to rise immediately | |||
</sqf> | |||
|seealso= [[flyInHeightASL]] | |||
}} | }} | ||
{{Note | |||
|user= Hardrock | |||
|timestamp= 20060804125000 | |||
|text= ''Notes from before the conversion:''<br> | |||
From {{GVI|ofp|1.80}} - [[flyInHeight]] now affects not only helicopters, but also planes. | From {{GVI|ofp|1.80}} - [[flyInHeight]] now affects not only helicopters, but also planes. | ||
}} | |||
{{Note | |||
|user= Kronzky | |||
|timestamp= 20081216013400 | |||
|text= A [[flyInHeight]] of 0 will keep the chopper pinned to the ground, even when the engines have been started. | |||
}} | |||
{{Note | |||
|user= Jtgibson | |||
|timestamp= 20090411005300 | |||
|text= If a helo has no waypoints, it will assume a low hover without regard to this setting. | |||
{{Feature|important|This comment does not apply to the {{Link|#Syntax 2|alternative syntax}}.}} | |||
|game= arma1 | |||
|version= 1.00 | |||
}} | |||
{{Note | |||
|user= OverlordZorn | |||
|timestamp= 20250801171158 | |||
|text= As of 2.20: | |||
<br>- when altitude is greater or equal 10, collision avoidance will maintain priority and the rotary airframe stays around 20~35 meters ATL, depending on nearby objects. | |||
<br>- when altitude is lower then 10, for example, 9.99999, it seems that collision avoidance is disabled and the airframe will maintain the desired ATL. | |||
}} |
Latest revision as of 19:11, 1 August 2025
Description
- Description:
- Sets the flying altitude for aircraft relatively to the ground surface. Avoid too low altitudes, as helicopters and planes won't evade trees and obstacles on the ground. The default flying altitude is 100 meters. The minimum height is 20 meters.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- aircraft flyInHeight altitude
- Parameters:
- aircraft: Object
- altitude: Number - flying altitude in meters
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- aircraft flyInHeight [altitude, forced]
- Parameters:
- aircraft: Object
- altitude: Number - flying altitude in meters
- forced: Boolean - true to force altitude in all cases, false to behave like main syntax
- Return Value:
- Nothing
Examples
- Example 1:
- _helicopter flyInHeight 40;
- Example 2:
- // for altitudes below 10m _helicopter flyInHeight 5; // helicopter will land _helicopter flyInHeight [5, true]; // helicopter will hover at 5m altitude // on a landed helicopter _helicopter flyInHeight 50; // helicopter will not move until a waypoint is added _helicopter flyInHeight [50, true]; // helicopter will start to rise immediately
Additional Information
- See also:
- flyInHeightASL
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 - 12:50 (UTC)
-
Notes from before the conversion:
From1.80 - flyInHeight now affects not only helicopters, but also planes.
- Posted on Dec 16, 2008 - 01:34 (UTC)
- A flyInHeight of 0 will keep the chopper pinned to the ground, even when the engines have been started.
- Posted on Apr 11, 2009 - 00:53 (UTC)
-
If a helo has no waypoints, it will assume a low hover without regard to this setting.
- Posted on Aug 01, 2025 - 17:11 (UTC)
-
As of 2.20:
- when altitude is greater or equal 10, collision avoidance will maintain priority and the rotary airframe stays around 20~35 meters ATL, depending on nearby objects.
- when altitude is lower then 10, for example, 9.99999, it seems that collision avoidance is disabled and the airframe will maintain the desired ATL.
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: Object Manipulation
- Scripting Commands: Global Effect