Look At Target Over Time


Rotates the camera over a duration of time (in seconds) to point towards the specified entity or coordinate.

Signature:

look_at_target_over_time(target, duration)
ArgumentDescriptionTypeRequired
targetTarget to aim the camera towards.Entity or CoordinateYes
durationDuration of the rotation (in seconds).DecimalYes

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

Example:

look_at_target_over_time(entity["chest01"], 1);

Results: The camera's angle is adjusted to aim towards the entity with an ID of “chest01” over a duration of one second.

Use the Look At Target Over Time 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: