getAttackTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Returns the target given unit is engaging. |DESCRIPTION= | | Returns the target given unit is engaging. |DESCRIPTION= | ||
| [[getAttackTarget]] unit |SYNTAX= | | [[getAttackTarget]] unit |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Object]] |RETURNVALUE= | | [[Object]] |RETURNVALUE= | ||
|x1= <code>_theEnemyWhoHesEngaging = [[getAttackTarget]] unit;</code> |Example1= | |x1= <code>_theEnemyWhoHesEngaging = [[getAttackTarget]] unit;</code> |Example1= | ||
| [[assignedTarget]] |SEEALSO= | | [[assignedTarget]] |SEEALSO= |
Revision as of 01:12, 17 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
Notes
Bottom Section