User Tools

Site Tools


lock_camera

Lock Camera


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:

lock_camera()
ArgumentDescriptionTypeRequired
(No arguments for this function)

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.

Example:

lock_camera();

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.

Use the Lock Camera function to force a static view of the current map or to freeze the camera in place for the duration of a cutscene.


Editor Node:

Visual Demo:

lock_camera.txt · Last modified: 2021/04/21 18:33 by justin