doWatch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Orders the unit to watch the given '''position''' (silently).  |= Description
| Order the given unit to watch at the given position or target (without radio messages)..  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''doWatch''' position |= Syntax
| unit '''doWatch''' position |= Syntax


|p1= unit: [[Object]] or [[Array]] |=Parameter 1
|p1= unit: [[Object]] or [[Array]] |= Parameter 1


|p2= position: [[Position]] |=Parameter 2
|p2= position: [[Position]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <pre>soldierOne doWatch getMarkerPos "MarkerMoveOne"</pre> | =Example 1
|s2= unit '''doWatch''' target |= Syntax 2
 
|p21= unit: [[Object]] or [[Array]] |= Parameter 1
 
|p22= target: [[Object]] |= Parameter 2
 
|r2= [[Nothing]] |= Return value 2
____________________________________________________________________________________________
 
|x1= <pre>soldierOne doWatch getMarkerPos "MarkerMoveOne"
 
soldierOne doWatch eastSoldier</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[commandWatch]] |= See also


}}
}}

Revision as of 13:15, 2 August 2006


Hover & click on the images for description

Description

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

Syntax

Syntax:
unit doWatch position
Parameters:
unit: Object or Array
position: Position
Return Value:
Nothing

Alternative Syntax

Syntax:
unit doWatch target
Parameters:
unit: Object or Array
target: Object
Return Value:
Nothing

Examples

Example 1:
soldierOne doWatch getMarkerPos "MarkerMoveOne"

soldierOne doWatch eastSoldier

Additional Information

See also:
commandWatch

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