User Tools

Site Tools


move_camera

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
move_camera [2017/04/18 20:52] justinmove_camera [2021/04/21 18:35] (current) justin
Line 2: Line 2:
 ---- ----
  
-Instantly moves the camera to the specified (X,Y,Z) [[coordinate]] or pre-defined [[camera position]].+Instantly moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera_positions|camera position]]. A target to aim the camera towards can optionally be specified. If using a [[camera_positions|camera position]] for the destination, this "look at target" will override the angle.
  
 +====Signature:====
 <code python> <code python>
-move_camera(coord[00, 0])+move_camera(destinationlook_at_target)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|coord[0|Description.|[[String]]|Yes| +|destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| 
-| 0|Description.|[[String]]|Yes| +|look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No|
-0]|Description.|[[String]]|Yes|+
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 18: Line 18:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-move_camera(coord[0, 0, 0])+move_camera("Inside House", entity["Cat"]);
 </code> </code>
-//Results://+//Results:// The camera instantly moves to the location defined by the "Inside House" camera position and is aimed towards the "Cat" character.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Move Camera** function to ...+Use the **Move Camera** 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>
  
move_camera.1492573967.txt.gz · Last modified: 2017/04/18 20:52 by justin