User Tools

Site Tools


reset_camera_over_time

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
reset_camera_over_time [2017/05/02 16:17] justinreset_camera_over_time [2021/04/21 18:43] (current) justin
Line 4: Line 4:
 Resets the camera to the default position/rotation over the specified duration (in seconds) then returns control of the camera to the player. Resets the camera to the default position/rotation over the specified duration (in seconds) then returns control of the camera to the player.
  
 +====Signature:====
 <code python> <code python>
-reset_camera_over_time(1)+reset_camera_over_time(duration)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|1|Description.|[[String]]|Yes|+|duration|Duration of the reset (in seconds).|[[Number]]|Yes|
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-reset_camera_over_time(1)+reset_camera_over_time(0.5);
 </code> </code>
-//Results://+//Results:// The camera returns to the default position and rotation over a duration of 0.5 seconds and is no longer locked.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Reset Camera Over Time** function to ...+Use the **Reset Camera Over Time** function after showing the player an event that has occurred elsewhere or upon the ending of a cutscene to reset the camera back to the player.
 </WRAP> </WRAP>
  
reset_camera_over_time.1493767036.txt.gz · Last modified: 2017/05/02 16:17 by justin