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 revision
Previous revision
look_at_target [2017/04/15 19:38] justinlook_at_target [2021/04/21 18:35] (current) 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.
  
 +====Signature:====
 <code python> <code python>
 look_at_target(target) look_at_target(target)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|target|Description.|[[Entity]] or [[Coordinate]]|Yes|+|target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|Yes| 
 + 
 +<WRAP center round info 100%> 
 +[[Lock Camera]] must be called before using this function to prevent the player from manually controlling the camera. 
 +</WRAP>
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-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%>
-Use the **Look At Target** function to ...+Use the **Look At Target** function to focus on certain characters/events during a cutscene or to indicate to the player that something in the scene has changed.
 </WRAP> </WRAP>
  
look_at_target.1492310329.txt.gz · Last modified: 2017/04/15 19:38 by justin