Camera

This page describes camera API methods

Set camera

cameraSet(player,vec3,vec3)

Lock camera to position

Details
Example

Remarks

Arguments

Type

Description

player

Player ID

vec3

Position

vec3

Direction

Returns

0 if successful, -1 if invalid

// TODO

Unlock camera

cameraUnlock(player)

Unlocks the camera to be returned back to player

Details
Example

Remarks

Arguments

Type

Description

player

Player ID

Returns

0 if successful, -1 if invalid

// TODO

Target player

cameraTargetPlayer(player, player)

Camera spectates player

Details
Example

Remarks

Arguments

Type

Description

player

Player ID

player

Spectated Player

Returns

0 if successful, -1 if invalid

// TODO

Target vehicle

cameraTargetVehicle(vehicle, vehicle)

Camera spectates vehicle

Details
Example

Remarks

Arguments

Type

Description

vehicle

Vehicle ID

vehicle

Spectated Vehicle

Returns

0 if successful, -1 if invalid

// TODO

Target unset

cameraTargetUnset(player)

Camera will stop spectating entities

Details
Example

Remarks

Arguments

Type

Description

player

Player ID

Returns

0 if successful, -1 if invalid

// TODO