assignedTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
m (Add link to getAttackTarget)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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 [[Arma_3_Field_Manual_-_Commanding#Target_Assignment|quick command menu]] or [[Operation_Flashpoint:_Commander_Guide#TARGET_.282.29|"target" complex command menu]]).
| 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 [[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>
To unassign the target use [[doWatch]] [[objNull]] or [[commandWatch]] [[objNull]] or as player and group leader order "no target" in the [[Operation Flashpoint: Commander Guide#TARGET .282.29|"target" complex command menu]].
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]].
{{Informative |
<br><br>
* This command does not return the target a unit is actually engaging ("attack unit"). For this information, see [[getAttackTarget]].
NOTE: If a player is inside a vehicle as the [[effectiveCommander]], the vehicle's crew assignedTarget will always be [[objNull]].
* If a player is inside a vehicle as the [[effectiveCommander]], the vehicle's crew assignedTarget will always be [[objNull]].
<br><br>
}} |DESCRIPTION=
{{Important | This does NOT return the target unit an unit is actually engaging ("attack unit").}}|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 45: Line 44:
[[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 13:00, 15 September 2020

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

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