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

Next revision
Previous revision
reset_camera_over_time [2017/05/02 14:11] – external edit 127.0.0.1reset_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>
  
Line 31: Line 32:
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:reset_camera_over_time_demo.gif?nolink|}}+{{:wiki:reset_camera_at_speed_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
reset_camera_over_time.1493759514.txt.gz · Last modified: 2017/05/02 14:11 by 127.0.0.1