User Tools

Site Tools


lock_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
lock_camera [2017/04/12 17:37] justinlock_camera [2021/04/21 18:33] (current) justin
Line 2: Line 2:
 ---- ----
  
-Locks the camera controls and stops the camera from following the player. The camera will only be affected by scripts until it is unlocked using one of the "Reset Camera" functions. This function must be triggered before using any of the "Move Camera" functions.+Locks the camera controls and stops the camera from following the player. The camera will only be affected by scripts until it is unlocked using one of the "Reset Camera" functions.
  
 +====Signature:====
 <code python> <code python>
 lock_camera() lock_camera()
 </code> </code>
 +
 +^Argument^Description^Type^Required^
 +|  (No arguments for this function)  ||||
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-This function must be called to put the camera into a locked state before using any camera movement functions: [[move_camera|Move Camera]], [[move_camera_at_speed|Move Camera At Speed]], [[move_camera_over_time|Move Camera Over Time]]+This function must be called to put the camera into a locked state before using any of the camera movement functions: [[Move Camera]], [[Move Camera At Speed]], [[Move Camera Over Time]], [[Look At Target]], [[Look At Target Over Time]], [[Rotate Camera]], and [[Rotate Camera Over Time]].
 </WRAP> </WRAP>
- 
- 
-^Argument^Description^Type^Required^ 
-|  (No arguments for this function)  |||| 
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-lock_camera()+lock_camera();
 </code> </code>
 //Results:// The camera is locked into its current position within the scene and the player's movements no longer affect the camera until it has been reset. Zooming and rotating of the camera are also disabled. //Results:// The camera is locked into its current position within the scene and the player's movements no longer affect the camera until it has been reset. Zooming and rotating of the camera are also disabled.
lock_camera.1492043864.txt.gz · Last modified: 2017/04/12 17:37 by justin