aimedAtTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on November ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-11-$1") |
||
Line 36: | Line 36: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2013-11-19</dd> | ||
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt> | <dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt> | ||
<dd class="note"> | <dd class="note"> |
Revision as of 23:13, 13 May 2023
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:
- Example 2:
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 2013-11-19
- 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.