flyInHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (split off VBS2 version)
m (template:command argument fix)
(8 intermediate revisions by 5 users not shown)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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
| 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| aircraft '''flyInHeight''' altitude |= Syntax
| aircraft [[flyInHeight]] altitude |SYNTAX=


|p1= aircraft: [[Object]] |= Parameter 1
|p1= aircraft: [[Object]] |PARAMETER1=


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


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_helicopter flyInHeight 40</pre> |= Example 1
|x1= <code>_helicopter [[flyInHeight]] 40;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getFlyInHeight (VBS2)]] |= See also
| [[flyInHeightASL]], [[swimInDepth]] |SEEALSO=
 
}}
}}


Line 33: Line 32:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on August 4, 2006 - 10:50
<dd class="notedate">Posted on August 4, 2006 - 10:50</dd>
<dt class="note">[[User:Hardrock|hardrock]]
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:''
<dd class="note">''Notes from before the conversion:''<br />
 
From {{GVI|ofp|1.80}} - [[flyInHeight]] now affects not only helicopters, but also planes.
From version '''1.80+''' - '''flyInHeight''' now affects not only helicopters, but also planes.
<dd class="notedate">Posted on August 4, 2006 - 12:18
</dd>
<dt class="note">[[User:UNN|UNN]]
 
<dd class="note">A plane's flyInHeight is restricted to a minimum of 20 meters.
<dd class="notedate">Posted on August 4, 2006 - 12:18</dd>
<dd class="notedate">Posted on December 15, 2008 - 19:04
<dt class="note">'''[[User:UNN|UNN]]'''</dt><dd class="note">
<dt class="note">[[User:Kronzky|Kronzky]]
A planes flyInHeight, is restricted to a minimum of 20 meters.
<dd class="note">A [[flyInHeight]] of 0 will keep the chopper pinned to the ground, even when the engines have been started.
</dd>
<dd class="notedate">Posted on 00:53, 11 April 2009 (CEST)
 
<dt class="note">[[User:Jtgibson|Jtgibson]]
<dd class="notedate">Posted on December 15, 2008 - 19:04</dd>
<dd class="note">If a helo has no waypoints, it will assume a low hover without regard to this setting.
<dt class="note">'''[[User:Kronzky|Kronzky]]'''</dt><dd class="note">
A flyInHeight of 0 will keep the chopper pinned to the ground, even when the engines have been started.
</dd>
 
<dd class="notedate">Posted on 00:53, 11 April 2009 (CEST)</dd>
<dt class="note">'''[[User:Jtgibson|Jtgibson]]'''</dt><dd class="note">
If a helo has no waypoints, it will assume a low hover without regard to this setting.
</dd>
 
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 61: Line 51:


[[Category:Scripting Commands|FLYINHEIGHT]]
[[Category:Scripting Commands|FLYINHEIGHT]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|FLYINHEIGHT]]
[[Category:Scripting Commands OFP 1.96|FLYINHEIGHT]]
[[Category:Scripting Commands OFP 1.46|FLYINHEIGHT]]
[[Category:Scripting Commands OFP 1.46|FLYINHEIGHT]]
Line 67: Line 58:
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:39, 7 April 2019

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.
Groups:
Uncategorised

Syntax

Syntax:
aircraft flyInHeight altitude
Parameters:
aircraft: Object
altitude: Number - flying altitude in meters
Return Value:
Nothing

Examples

Example 1:
_helicopter flyInHeight 40;

Additional Information

See also:
flyInHeightASLswimInDepth

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

Notes

Posted on August 4, 2006 - 10:50
hardrock
Notes from before the conversion:
From Logo A0.png1.80 - flyInHeight now affects not only helicopters, but also planes.
Posted on August 4, 2006 - 12:18
UNN
A plane's flyInHeight is restricted to a minimum of 20 meters.
Posted on December 15, 2008 - 19:04
Kronzky
A flyInHeight of 0 will keep the chopper pinned to the ground, even when the engines have been started.
Posted on 00:53, 11 April 2009 (CEST)
Jtgibson
If a helo has no waypoints, it will assume a low hover without regard to this setting.

Bottom Section