doTarget: 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|DOTARGET]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DOTARGET]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DOTARGET]]
 
[[Category:Scripting Commands ArmA|DOTARGET]]
| ofp |= Game name


|1.00|= Game version


<h2 style="color:#000066">'''''unit'' doTarget ''position'''''</h2>
|arg= local |= Arguments in MP


|eff= global |= Effects in MP
____________________________________________________________________________________________


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


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


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


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


[[Nothing]]
| [[commandTarget]] |= See also


'''Description:'''
}}


Orders the unit to target, the given target (silently).
<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 '''doTarget''' [[player]]
[[Category:Scripting Commands|DOTARGET]]
[[Category:Scripting Commands OFP 1.96|DOTARGET]]
[[Category:Scripting Commands OFP 1.46|DOTARGET]]
[[Category:Scripting Commands ArmA|DOTARGET]]

Revision as of 00:50, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
ESoldier1 doTarget WSoldier1

Additional Information

See also:
commandTarget

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