ex_camera_set_tracking_object

Sets the tracking object for the camera

Syntax

ex_camera_set_tracking_object(cameraHandle, object)
Argument Description
cameraHandle The camera handle
object The object to follow
Returns nothing

Description

This function sets the object that will be followed by the camera's view. You can use this function to switch between different objects to e.g. create a static camera system or stop tracking the player (e.g. set to noone). To manipulate the camera manually, when no tracking object is being followed, you can use the function ex_camera_set_position()

Example

//Set the tracking object to obj_camera_manipulator
ex_camera_set_tracking_object(global._camera, obj_camera_manipulator);

Minimum Supported Version

exCamera 0.5.0