— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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)
Argument | Description | Type | Required |
---|---|---|---|
destination | Destination coordinate or camera position. | Coordinate or String | Yes |
look_at_target | Description. | Coordinate or Entity | No |
Lock Camera must be called before using this function to prevent the player from manually controlling the camera.
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.