ex_camera_set_tracking_object(cameraHandle, object)
| Argument | Description |
|---|---|
| cameraHandle | The camera handle |
| object | The object to follow |
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()
//Set the tracking object to obj_camera_manipulator ex_camera_set_tracking_object(global._camera, obj_camera_manipulator);