flyInHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "|= Game name" to "|Game name=")
(28 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|FLYINHEIGHT]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.96|FLYINHEIGHT]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|FLYINHEIGHT]]
[[Category:Scripting Commands ArmA|FLYINHEIGHT]]


| ofp |Game name=


<h2 style="color:#000066">'''''helicopter'' flyInHeight ''height'''''</h2>
|1.00|Game version=


|arg= local |Multiplayer Arguments=


'''Operand types:'''
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________


'''helicopter:''' [[Object]]
| 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=
____________________________________________________________________________________________


'''height:''' [[Number]]
| aircraft [[flyInHeight]] altitude |SYNTAX=


'''Type of returned value:'''
|p1= aircraft: [[Object]] |PARAMETER1=


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


'''Description:'''
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_helicopter [[flyInHeight]] 40;</code> |EXAMPLE1=
____________________________________________________________________________________________


Set flying '''height''' level for '''helicopter'''.
| [[flyInHeightASL]], [[swimInDepth]] |SEEALSO=
}}


Accepted range is 50 to 1000.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on August 4, 2006 - 10:50
<dt class="note">[[User:Hardrock|hardrock]]
<dd class="note">''Notes from before the conversion:''<br />
From {{GVI|ofp|1.80}} - [[flyInHeight]] now affects not only helicopters, but also planes.
<dd class="notedate">Posted on August 4, 2006 - 12:18
<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 December 15, 2008 - 19:04
<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.
<dd class="notedate">Posted on 00:53, 11 April 2009 (CEST)
<dt class="note">[[User:Jtgibson|Jtgibson]]
<dd class="note">If a helo has no waypoints, it will assume a low hover without regard to this setting.
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>


'''Example:'''
[[Category:Scripting Commands|FLYINHEIGHT]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
cobraOne '''flyInHeight''' 150
[[Category:Scripting Commands OFP 1.96|FLYINHEIGHT]]
 
[[Category:Scripting Commands OFP 1.46|FLYINHEIGHT]]
 
[[Category:Scripting Commands ArmA|FLYINHEIGHT]]
'''Comments:'''
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]]
From version 1.80+ - '''flyInHeight''' now affects not only helicopters, but also planes.
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 21:57, 31 August 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