Camera

This page describes camera API methods

Set camera

cameraSet(player,vec3,vec3)

Lock camera to position

Remarks

Arguments

Type

Description

player

Player ID

vec3

Position

vec3

Direction

Returns

0 if successful, -1 if invalid

Unlock camera

cameraUnlock(player)

Unlocks the camera to be returned back to player

Remarks

Arguments

Type

Description

player

Player ID

Returns

0 if successful, -1 if invalid

Target player

cameraTargetPlayer(player, player)

Camera spectates player

Remarks

Arguments

Type

Description

player

Player ID

player

Spectated Player

Returns

0 if successful, -1 if invalid

Target vehicle

cameraTargetVehicle(vehicle, vehicle)

Camera spectates vehicle

Remarks

Arguments

Type

Description

vehicle

Vehicle ID

vehicle

Spectated Vehicle

Returns

0 if successful, -1 if invalid

Target unset

cameraTargetUnset(player)

Camera will stop spectating entities

Remarks

Arguments

Type

Description

player

Player ID

Returns

0 if successful, -1 if invalid

Last updated