assignedTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 9: | Line 8: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| 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> | | 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> | ||
Line 17: | Line 15: | ||
* 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]]. | ||
}} |DESCRIPTION= | }} |DESCRIPTION= | ||
| '''assignedTarget''' vehicleName |SYNTAX= | | '''assignedTarget''' vehicleName |SYNTAX= | ||
Line 24: | Line 21: | ||
| [[Object]] |RETURNVALUE= | | [[Object]] |RETURNVALUE= | ||
|x1= <code>_target = [[assignedTarget]] _T72</code> |EXAMPLE1= | |x1= <code>_target = [[assignedTarget]] _T72</code> |EXAMPLE1= | ||
| [[commandTarget]], [[doTarget]], [[commandWatch]], [[doWatch]], [[effectiveCommander]], [[setEffectiveCommander]] |SEEALSO= | | [[commandTarget]], [[doTarget]], [[commandWatch]], [[doWatch]], [[effectiveCommander]], [[setEffectiveCommander]] |SEEALSO= |
Revision as of 00:25, 17 January 2021
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. - Groups:
- Object Manipulation
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 Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands