User Tools

Site Tools


look_at_target

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
look_at_target [2017/04/15 19:29] – external edit 127.0.0.1look_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>
-look_at_target(player)+look_at_target(target)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|player|Description.|[[String]]|Yes|+|target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|Yes|
  
 ====Example:==== ====Example:====
 <code python> <code python>
-look_at_target(player)+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