User Tools

Site Tools


look_at_target

This is an old revision of the document!


Look At Target


Instantly rotates the camera to point towards the specified entity or coordinate.

look_at_target(target)
ArgumentDescriptionTypeRequired
targetTarget to aim the camera towards.Entity or CoordinateYes

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

Example:

look_at_target(entity["chest01"])

Results: The camera's angle is instantly adjusted to aim towards the entity with an ID of “chest01”.

Use the Look At Target function to …


Editor Node:

Visual Demo:

look_at_target.1492311203.txt.gz · Last modified: 2017/04/15 19:53 by justin