commandTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|COMMANDTARGET]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|COMMANDTARGET]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COMMANDTARGET]]
[[Category:Scripting Commands ArmA|COMMANDTARGET]]


| ofp |= Game name


<h2 style="color:#000066"> '''''unit'' commandTarget ''position'''''</h2>
|1.00|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Order the given unit to target the given target (via the radio). |= Description
____________________________________________________________________________________________


'''unit:''' [[Object]] or [[Array]]
| unit '''commandTarget''' target |= Syntax


'''position:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>ESoldier1 commandTarget WSoldier1</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
| [[doTarget]] |= See also


'''Description:'''
}}


Order unit to move to '''position''' and target given target (via radio).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''commandTarget''' [[player]]
[[Category:Scripting Commands|COMMANDTARGET]]
[[Category:Scripting Commands OFP 1.96|COMMANDTARGET]]
[[Category:Scripting Commands OFP 1.46|COMMANDTARGET]]
[[Category:Scripting Commands ArmA|COMMANDTARGET]]

Revision as of 23:58, 1 August 2006

Hover & click on the images for description

Description

Description:
Order the given unit to target the given target (via the radio).
Groups:
Uncategorised

Syntax

Syntax:
unit commandTarget target
Parameters:
unit: Object
Return Value:
Nothing

Examples

Example 1:
ESoldier1 commandTarget WSoldier1

Additional Information

See also:
doTarget

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