Difference between revisions of "lookAt"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
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 02:00, 2 August 2006

Introduced with Armed Assault version 2.4
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
2.4

Description

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

Syntax

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

Examples

Example 1:
Example needed

Additional Information

Multiplayer:
-
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section