getAttackTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " 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"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
| 2.00 | | 2.00 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Returns the target given unit is engaging. | | Returns the target given unit is engaging. | ||
| [[getAttackTarget]] unit | | [[getAttackTarget]] unit | ||
|p1= unit - [[Object]] | |p1= unit - [[Object]] | ||
| [[Object]] | | [[Object]] | ||
|x1= <code>_theEnemyWhoHesEngaging = [[getAttackTarget]] unit;</code> | |x1= <code>_theEnemyWhoHesEngaging = [[getAttackTarget]] unit;</code> | ||
| [[assignedTarget]] | | [[assignedTarget]] | ||
}} | }} | ||
Revision as of 00:36, 18 January 2021
Description
- Description:
- Returns the target given unit is engaging.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getAttackTarget unit
- Parameters:
- unit - Object
- Return Value:
- Object
Examples
- Example 1:
_theEnemyWhoHesEngaging = getAttackTarget unit;
Additional Information
- See also:
- assignedTarget
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
Bottom Section