assignedTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
(improved description) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the target assigned to the vehicle/ | | Returns the target assigned to a vehicle ([[effectiveCommander]])/an infantry unit by the group/vehicle/formation leader. Done by the (formation sub)group AI leader, or by a player as group leader (via context menu or targets command menu). | ||
<br><br> | |||
If the player is inside a vehicle and the [[effectiveCommander]], the vehicle crew will not be able to return an assignedTarget. | |||
<br><br> | |||
To unassign the target use [[doWatch]] [[objNull]] or [[commandWatch]] [[objNull]] or a group leader "no target" in the targets command menu. | |||
<br><br> | |||
{{Important | This does NOT return the target unit an unit is actually engaging ("attack unit").}}|DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 22: | Line 28: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[commandTarget]], [[doTarget]], [[commandWatch]], [[doWatch]] |SEEALSO= | | [[commandTarget]], [[doTarget]], [[commandWatch]], [[doWatch]], [[effectiveCommander]], [[setEffectiveCommander]] |SEEALSO= | ||
}} | }} |
Revision as of 10:59, 27 December 2019
Description
- Description:
- Returns the target assigned to a vehicle (effectiveCommander)/an infantry unit by the group/vehicle/formation leader. Done by the (formation sub)group AI leader, or by a player as group leader (via context menu or targets command menu).
If the player is inside a vehicle and the effectiveCommander, the vehicle crew will not be able to return an assignedTarget.
To unassign the target use doWatch objNull or commandWatch objNull or a group leader "no target" in the targets command menu.
- 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