doTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (moved notes into description)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Order the given unit(s) to target the given target (without radio messages). |DESCRIPTION=
| Order the given unit(s) to target the given target (without radio messages).<br>Targeting can be stopped by <code>_unit [[doWatch]] [[objNull]];</code> or<code>_unit [[commandWatch]] [[objNull]];</code> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 29: Line 29:


}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''<dd class="note">
It appears '''doTarget objNull''' can not be used to stop a unit targeting a previously assigned target. Using '''[[doWatch]] objNull''' will achieve the desired result. (ArmA v1.12Beta)
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|DOTARGET]]
[[Category:Scripting Commands|DOTARGET]]
Line 50: Line 39:
[[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}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on July 2, 2015 - 23:22 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
To expand on ceeeb's note, [[commandWatch]] [[objNull]] will also unassign target;
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->

Revision as of 10:27, 22 March 2020

Hover & click on the images for description

Description

Description:
Order the given unit(s) to target the given target (without radio messages).
Targeting can be stopped by _unit doWatch objNull; or_unit commandWatch objNull;
Groups:
Uncategorised

Syntax

Syntax:
unit doTarget target
Parameters:
unit: Object or Array - a single unit or array of units
target: Object
Return Value:
Nothing

Examples

Example 1:
_ESoldier1 doTarget _WSoldier1;

Additional Information

See also:
assignedTargetcommandTargetdoWatch doFire

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
Posted on March 28, 2017 - 08:18 (UTC)
Joris
Targeting may not work as expected when trying to target a unit on the same side (friendly).