flyInHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix)
 
(38 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
|version3= 1.00


|eff= global |= Effects in MP
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| 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. |= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| aircraft '''flyInHeight''' altitude |= Syntax
|game6= tkoh
|version6= 1.00


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


|p2= altitude: [[Number]] - flying altitude in meters |= Parameter 2
|arg= local


| [[Nothing]] |= Return value
|eff= global
____________________________________________________________________________________________
 
|x1= <pre>_helicopter flyInHeight 40</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|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.
{{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


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 4, 2006 - 10:50
|s2= aircraft [[flyInHeight]] [altitude, forced]
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''


From version '''1.80+''' - '''flyInHeight''' now affects not only helicopters, but also planes.
|s2since= arma3 2.14


|p21= aircraft: [[Object]]


<dd class="notedate">Posted on August 4, 2006 - 12:18
|p22= altitude: [[Number]] - flying altitude in meters
<dt class="note">'''[[User:UNN|UNN]]'''<dd class="note">
A planes flyInHeight, is restricted to a minimum of 20 meters.


|p23= forced: [[Boolean]] - [[true]] to force altitude in all cases, [[false]] to behave like main syntax


<dd class="notedate">Posted on December 15, 2008 - 19:04
|r2= [[Nothing]]
<dt class="note">'''[[User:Kronzky|Kronzky]]'''<dd class="note">
A flyInHeight of 0 will keep the chopper pinned to the ground, even when the engines have been started.


|x1= <sqf>_helicopter flyInHeight 40;</sqf>


<dd class="notedate">Posted on 00:53, 11 April 2009 (CEST)
|x2= <sqf>
<dt class="note">'''[[User:Jtgibson|Jtgibson]]'''<dd class="note">
// for altitudes below 10m
If a helo has no waypoints, it will assume a low hover without regard to this setting.
_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>


<!-- Note Section END -->
|seealso= [[flyInHeightASL]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{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.
}}


[[Category:Scripting Commands|FLYINHEIGHT]]
{{Note
[[Category:Scripting Commands OFP 1.96|FLYINHEIGHT]]
|user= UNN
[[Category:Scripting Commands OFP 1.46|FLYINHEIGHT]]
|timestamp= 20060804141800
[[Category:Scripting Commands ArmA|FLYINHEIGHT]]
|text= A plane's [[flyInHeight]] is restricted to a minimum of 20 meters.
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
{{Note
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|user= Kronzky
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
|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
}}

Latest revision as of 16:57, 10 October 2023

Hover & click on the images for description

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.
Height measurement is relative to the pilot and can be approximated with ASLToAGL eyePos driver _aircraft;.
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
Hardrock - c
Posted on Aug 04, 2006 - 12:50 (UTC)
Notes from before the conversion:
From Logo A0.png1.80 - flyInHeight now affects not only helicopters, but also planes.
UNN - c
Posted on Aug 04, 2006 - 14:18 (UTC)
A plane's flyInHeight is restricted to a minimum of 20 meters.
Kronzky - c
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.
Jtgibson - c
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.

This comment does not apply to the alternative syntax.