Cameras

Attaching/Detaching cameras client-side

You can detach the player camera to move and rotate it.

GAME.CAMERA.detach();
GAME.CAMERA.attach();
1
2

Moving/Rotating cameras client-side

WARNING

Only once the camera is detached, you can also rotate or position it

# Move camera
GAME.CAMERA.move(
    0,   # num x position
    0,   # num y position
    0    # num z position
);

# Rotate camera
GAME.CAMERA.rotate(
    0,   # num x rotation
    0,   # num y rotation
    0    # num z rotation
);

# Make camera look at coordinates
GAME.CAMERA.lookAt(
    0,   # num x position
    0,   # num y position
    0    # num z position
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Camera methods client-side

# Field of view
GAME.CAMERA.fov(90); # num (10-170)

# Shake the camera
GAME.CAMERA.shake(0.9); # num (0 - 1)
1
2
3
4
5