aimedAtTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
Line 27: Line 27:


<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on November 19, 2013</dd>
<dd class="notedate">Posted on November 19, 2013</dd>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>

Revision as of 22:42, 5 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationWeapons

Syntax

Syntax:
Syntax needed
Parameters:
vehicle: Object
[target, weapon]: Array
target: Object
weapon: String - (optional)
Return Value:
Return value needed

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.