User Tools

Site Tools


move_camera

This is an old revision of the document!


Move Camera


Instantly moves the camera to the specified (X,Y,Z) coordinate or pre-defined camera position by name. A target to aim the camera towards can be optionally specified. If using a camera position for the destination, this “look at target” will override the angle.

move_camera(destination, look_at_target)
ArgumentDescriptionTypeRequired
destinationDestination coordinate or camera position.Coordinate or StringYes
look_at_targetDescription.Coordinate or EntityNo

Lock Camera must be called before using this function to prevent the player from manually controlling the camera.

Example:

move_camera("Inside House", entity["Cat"])

Results: The camera instantly moves to the location defined by the “Inside House” camera position and is aimed towards the “Cat” character.

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.


Editor Node:

Visual Demo:

move_camera.1492576070.txt.gz · Last modified: 2017/04/18 21:27 by justin