getArtilleryETA: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.56|= Game version ____________________...")
 
(Syntax was wrong for current version of command.)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''getArtilleryETA''' [unit, targetX, targetY, targetZ, magazineType]  |= Syntax
| unit '''getArtilleryETA''' [position targetObject, magazineType]  |= Syntax


|p1= [unit, targetX, targetY, targetZ, magazineType]: [[Array]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1


|p2= unit: [[Object]] |= Parameter 2
|p2= position targetObject: [[Position]] |= Parameter 2


|p3= targetX: [[Number]] |= Parameter 3
|p3= magazineType: [[String]] |= Parameter 3
 
|p4= targetY: [[Number]] |= Parameter 4
 
|p5= targetZ: [[Number]] |= Parameter 5
 
|p6= magazineType: [[String]] |= Parameter 6


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




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


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 21:20, 25 August 2013

Hover & click on the images for description

Description

Description:
Returns ETA in seconds for given artillery unit, it's magazineType and target position.
Groups:
Uncategorised

Syntax

Syntax:
unit getArtilleryETA [position targetObject, magazineType]
Parameters:
unit: Object
position targetObject: Position
magazineType: String
Return Value:
Number

Examples

Example 1:
_mortar getArtilleryETA [getPos _target, (getArtilleryAmmo [_mortar] select 0)];

Additional Information

See also:
See also needed

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

Bottom Section