aimedAtTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 26: Line 26:
|r1= [[Number]] in range 0..1
|r1= [[Number]] in range 0..1


|x1= <code>_aimingQuality = heli aimedAtTarget [target];</code>
|x1= <sqf>_aimingQuality = heli aimedAtTarget [target];</sqf>


|x2= <code>_aimingQuality = heli aimedAtTarget [target, "M197"];</code>
|x2= <sqf>_aimingQuality = heli aimedAtTarget [target, "M197"];</sqf>


|seealso= [[fireAtTarget]]
|seealso= [[fireAtTarget]]

Revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns how good the weapon of the vehicle is aimed at the target.
Groups:
Object ManipulationWeapons

Syntax

Syntax:
vehicle aimedAtTarget [target, weapon]
Parameters:
vehicle: Object
target: Object
weapon: String - (Optional)
Return Value:
Number in range 0..1

Examples

Example 1:
_aimingQuality = heli aimedAtTarget [target];
Example 2:
_aimingQuality = heli aimedAtTarget [target, "M197"];

Additional Information

See also:
fireAtTarget

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
Posted on November 19, 2013
Killzone_Kid
The command doesn't work with soldier weapons, only vehicle weapons (in Arma 3 at least). The return value is either 1 or 0, very rarely the value falls in between. 1 doesn't mean you are going to hit the target, while 0 means you're definitely off.