lookAt: Difference between revisions

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


| arma |= Game name


<h2 style="color:#000066">'''''unit(s)'' lookAt ''position'''''</h2>
|2.4|= Game version
____________________________________________________________________________________________


| Control what the unit is looking at (target or position) (format [[Position]])
Examples: someSoldier lookAt otherSoldier otherSoldier lookAt getMarkerPos "markerOne" |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit(s) '''lookAt''' position |= Syntax


'''unit(s):''' [[Object]] or [[Array]]
|p1= unit(s): [[Object]] |= Parameter 1


'''position:''' [[Object]] or [[Array]]
|p2= position: [[Object]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.40 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Control what the unit is looking at (target or position) (format [[Position]])
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|LOOKAT]]
 
[[Category:Scripting Commands OFP Elite |LOOKAT]]
'''Examples:'''
[[Category:Scripting Commands ArmA|LOOKAT]]
 
someSoldier '''lookAt''' otherSoldier
 
otherSoldier '''lookAt''' getMarkerPos "markerOne"

Revision as of 01:00, 2 August 2006

-wrong parameter ("Arma") defined!-2.4
Hover & click on the images for description

Description

Description:
Control what the unit is looking at (target or position) (format Position) Examples: someSoldier lookAt otherSoldier otherSoldier lookAt getMarkerPos "markerOne"
Groups:
Uncategorised

Syntax

Syntax:
unit(s) lookAt position
Parameters:
unit(s): Object
position: Object
Return Value:
Nothing

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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