self:set_position

Client

Sets the local position of the camera


Syntax

local status = self:set_position(
    position
)

Parameters

TypeNameDescription
vector3positionLocal position to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local position of a camera
local entity = core.camera.create()

entity:set_position({0, 5, 10})

On this page