assignedTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
m (Add getAttackTarget link)
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= ofpe
|version1= 1.00


|1.00
|game2= arma1
|version2= 1.00
 
|game3= arma2
|version3= 1.00
 
|game4= arma2oa
|version4= 1.50
 
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50


|arg= local
|arg= local
Line 9: Line 23:
|gr1= Object Manipulation
|gr1= Object Manipulation


| 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>
|descr= 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>
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 "no target" in the [[Operation Flashpoint: Commander Guide#TARGET .282.29|"target" complex command menu]].
{{Feature | Informative |
{{Feature | Informative |
Line 16: Line 30:
}}
}}


| '''assignedTarget''' vehicleName
|s1= [[assignedTarget]] vehicleName


|p1= vehicleName: [[Object]]
|p1= vehicleName: [[Object]]


| [[Object]]
|r1= [[Object]]
 
 
|x1= <code>_target = [[assignedTarget]] _T72</code>
|x1= <sqf>_target = assignedTarget _T72;</sqf>


| [[commandTarget]], [[doTarget]], [[commandWatch]], [[doWatch]], [[effectiveCommander]], [[setEffectiveCommander]]
|seealso= [[getAttackTarget]] [[commandTarget]] [[doTarget]] [[commandWatch]] [[doWatch]] [[effectiveCommander]] [[setEffectiveCommander]]
}}
}}
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 12:56, 12 June 2022

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:
Object Manipulation

Syntax

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

Examples

Example 1:
_target = assignedTarget _T72;

Additional Information

See also:
getAttackTarget commandTarget doTarget commandWatch doWatch effectiveCommander setEffectiveCommander

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