getArtilleryETA: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Syntax was wrong for current version of command.)
(explained better + note added)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns ETA in seconds for given artillery unit, it's magazineType and target position.   |= Description
| Returns ETA to the target in seconds for given artillery unit based on target position and current magazine type. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''getArtilleryETA''' [position targetObject, magazineType]  |= Syntax
| unit '''getArtilleryETA''' [targetPosition, magazineType]  |= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] - artillery unit |= Parameter 1


|p2= position targetObject: [[Position]] |= Parameter 2
|p2= targetPosition: [[Position]] - position of the target |= Parameter 2


|p3= magazineType: [[String]] |= Parameter 3
|p3= magazineType: [[String]] - loaded magazine|= Parameter 3


| [[Number]] |= RETURNVALUE  
| [[Number]] |= RETURNVALUE  


|x1= <code>_mortar [[getArtilleryETA]] <nowiki>[</nowiki>[[getPos]] _target, [[getArtilleryAmmo]] [_mortar] [[select]] 0];</code>|= EXAMPLE1


|x1= <code>_mortar getArtilleryETA [getPos _target, (getArtilleryAmmo [_mortar] select 0)]; </code>|= EXAMPLE1
|x2= <code>_mortar [[getArtilleryETA]] <nowiki>[</nowiki>[[position]] _target, [[currentMagazine]] _mortar];</code>|= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[getArtilleryAmmo]], [[commandArtilleryFire]], [[doArtilleryFire]], [[enableEngineArtillery]], [[getArtilleryComputerSettings]], [[shownArtilleryComputer]], [[inRangeOfArtillery]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  
Line 34: Line 35:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on August 26, 2013
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''
<dd class="note">To avoid wrong ETA readings, position of the target should only be obtained via [[position]] or [[getPos]]
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 01:00, 26 August 2013

Hover & click on the images for description

Description

Description:
Returns ETA to the target in seconds for given artillery unit based on target position and current magazine type.
Groups:
Uncategorised

Syntax

Syntax:
unit getArtilleryETA [targetPosition, magazineType]
Parameters:
unit: Object - artillery unit
targetPosition: Position - position of the target
magazineType: String - loaded magazine
Return Value:
Number

Examples

Example 1:
_mortar getArtilleryETA [getPos _target, getArtilleryAmmo [_mortar] select 0];
Example 2:
_mortar getArtilleryETA [position _target, currentMagazine _mortar];

Additional Information

See also:
getArtilleryAmmocommandArtilleryFiredoArtilleryFireenableEngineArtillerygetArtilleryComputerSettingsshownArtilleryComputerinRangeOfArtillery

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 26, 2013
Killzone_Kid
To avoid wrong ETA readings, position of the target should only be obtained via position or getPos

Bottom Section