User Tools

Site Tools


look_at_target

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
look_at_target [2017/04/15 19:38] justinlook_at_target [2017/04/15 19:40] justin
Line 2: Line 2:
 ---- ----
  
-Rotates the camera to point towards the specified target entity/coordinate.+Instantly rotates the camera to point towards the specified entity or coordinate.
  
 <code python> <code python>
Line 9: Line 9:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|target|Description.|[[Entity]] or [[Coordinate]]|Yes|+|target|Target to aim camera towards.|[[Entity]] or [[Coordinate]]|Yes|
  
 ====Example:==== ====Example:====
Line 15: Line 15:
 look_at_target(entity["chest01"]) look_at_target(entity["chest01"])
 </code> </code>
-//Results://+//Results:// The camera's angle is instantly adjusted to aim towards the entity with an ID of "chest01".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
look_at_target.txt · Last modified: 2021/04/21 18:35 by justin