set_camera_position
set_camera_position
allows you to change the position of a client’s camera.
Reference
set_camera_position(peer_id, x, y, z)
Call set_camera_position
in your script to change the position of a client’s camera.
Parameters
peer_id
: The id of the client to change the camera mode of.x
: The x position of the camera (in tiles).y
: The y position of the camera (in tiles).z
: The z position of the camera (in floor levels).
Returns
set_camera_position
does not return anything.
Caveats
- When using
CameraMode.Following
, this method will have no effect. Seeset_camera_mode
.
Usage
Move the camera to specific coordinates on join
Troubleshooting
No known troubleshooting steps.