assignedTarget: Difference between revisions
Jump to navigation
Jump to search
m (wording) |
(improved wording) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the target assigned to | | Returns the target assigned to an unit or the vehicle's [[effectiveCommander]]. The target can be assigned by the group/vehicle/formation leader (as as player via [[Arma_3_Field_Manual_-_Commanding#Target_Assignment|quick command menu]] or [[Operation_Flashpoint:_Commander_Guide#TARGET_.282.29|"target" complex command menu]]). | ||
<br><br> | <br><br> | ||
To unassign the target use [[doWatch]] [[objNull]] or [[commandWatch]] [[objNull]] or as player and group leader order [[Operation_Flashpoint:_Commander_Guide#TARGET_.282.29|"no target" in the "target" complex command menu]]. | |||
<br><br> | <br><br> | ||
NOTE: If a player is inside a vehicle as the [[effectiveCommander]], the vehicle's crew assignedTarget will always be [[objNull]]. | |||
<br><br> | <br><br> | ||
{{Important | This does NOT return the target unit an unit is actually engaging ("attack unit").}}|DESCRIPTION= | {{Important | This does NOT return the target unit an unit is actually engaging ("attack unit").}}|DESCRIPTION= |
Revision as of 06:05, 30 December 2019
Description
- Description:
- Returns the target assigned to an unit or the vehicle's effectiveCommander. The target can be assigned by the group/vehicle/formation leader (as as player via quick command menu or "target" complex command menu).
To unassign the target use doWatch objNull or commandWatch objNull or as player and group leader order "no target" in the "target" complex command menu.
NOTE: If a player is inside a vehicle as the effectiveCommander, the vehicle's crew assignedTarget will always be objNull.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_target = assignedTarget _T72
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters