assignedTarget: Difference between revisions
Jump to navigation
Jump to search
m (changed global to local variable to make clear the variable) |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3 " to "[[Arma 3: ") |
||
(66 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |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 | ||
|gr1= Object Manipulation | |||
|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]]. | |||
{{Feature | Informative | | |||
* 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]]. | |||
}} | }} | ||
|s1= [[assignedTarget]] vehicleName | |||
|p1= vehicleName: [[Object]] | |||
|r1= [[Object]] | |||
< | |x1= <sqf>_target = assignedTarget _T72;</sqf> | ||
[[ | |seealso= [[getAttackTarget]] [[commandTarget]] [[doTarget]] [[commandWatch]] [[doWatch]] [[effectiveCommander]] [[setEffectiveCommander]] | ||
[[ | }} | ||
[[ | |||
[[ |
Latest revision as of 10:38, 6 May 2024
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
- Syntax:
- assignedTarget vehicleName
- Parameters:
- vehicleName: Object
- Return Value:
- Object
Examples
- Example 1:
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation