aimedAtTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.51 | |1.51 | ||
| Returns how good the weapon of the vehicle is aimed at the target. | | Returns how good the weapon of the vehicle is aimed at the target. | ||
| vehicle '''aimedAtTarget''' [target, weapon] | | vehicle '''aimedAtTarget''' [target, weapon] | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|gr2= Weapons | |gr2= Weapons | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= [target, weapon]: [[Array]] | |p2= [target, weapon]: [[Array]] | ||
|p3= target: [[Object]] | |p3= target: [[Object]] | ||
|p4= weapon: [[String]] - (optional) | |p4= weapon: [[String]] - (optional) | ||
| [[Number]] - 0...1 | | [[Number]] - 0...1 | ||
|x1= <code> _aimingQuality = heli [[aimedAtTarget]] [target];</code> | |x1= <code> _aimingQuality = heli [[aimedAtTarget]] [target];</code> | ||
|x2= <code> _aimingQuality = heli [[aimedAtTarget]] [target,"M197"];</code> | |x2= <code> _aimingQuality = heli [[aimedAtTarget]] [target,"M197"];</code> | ||
| [[fireAtTarget]] | | [[fireAtTarget]] | ||
}} | }} |
Revision as of 00:01, 18 January 2021
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, 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: Object Manipulation
- Command Group: Weapons
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands