Arma 3 Scripting

Command in Object Manipulation

assignedTarget

Also available as Markdown and JSON, or read the original wiki page.

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 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

  • This command does not return the target a unit is actually engaging ("attack unit"). For this information, see getAttackTarget.
  • If a player is inside a vehicle as the effectiveCommander, the vehicle's crew assignedTarget will always be objNull.

Syntax

assignedTarget vehicleName

Parameters:

Returns: Object

Examples

Example 1

_target = assignedTarget _T72;

See also

getAttackTarget · commandTarget · doTarget · commandWatch · doWatch · effectiveCommander · setEffectiveCommander