aimedAtTarget: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
|p4= weapon: [[String]] - (optional) |= Parameter 4 | |p4= weapon: [[String]] - (optional) |= Parameter 4 | ||
| [[Number]] |= Return value | | [[Number]] - 0...1 |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code> _aimingQuality = heli [[aimedAtTarget]] [target];</code> |= Example 1 | ||
|x2= < | |x2= <code> _aimingQuality = heli [[aimedAtTarget]] [target,"M197"];</code> |= Example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 32: | Line 32: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on November 19, 2013 | |||
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]''' | |||
<dd class="note"> | |||
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. | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 16:02, 19 November 2013
Description
- Description:
- Returns how good the weapon of the vehicle is aimed at the target.
- Groups:
- Uncategorised
Syntax
- Syntax:
- vehicle aimedAtTarget [target, weapon]
- Parameters:
- vehicle: Object
- [target, weapon]: Array
- target: Object
- weapon: String - (optional)
- Return Value:
- Number - 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
Notes
- 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.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.51
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- ArmA 2 OA: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters