assignedTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(improved description)
m (wording)
Line 13: Line 13:
If the player is inside a vehicle and the [[effectiveCommander]], the vehicle crew will not be able to return an assignedTarget.
If the player is inside a vehicle and the [[effectiveCommander]], the vehicle crew will not be able to return an assignedTarget.
<br><br>
<br><br>
To unassign the target use [[doWatch]] [[objNull]] or [[commandWatch]] [[objNull]] or a group leader "no target" in the targets command menu.
To unassign the target use [[doWatch]] [[objNull]] or [[commandWatch]] [[objNull]] or as group leader order "no target" in the targets command menu.
<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 11:37, 27 December 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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 as group leader order "no target" in the targets command menu.

This does NOT return the target unit an unit is actually engaging ("attack unit").
Groups:
Uncategorised

Syntax

Syntax:
assignedTarget vehicleName
Parameters:
vehicleName: Object
Return Value:
Object

Examples

Example 1:
_target = assignedTarget _T72

Additional Information

See also:
commandTargetdoTargetcommandWatchdoWatcheffectiveCommandersetEffectiveCommander

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