self:set_horizontal_offset

Client

Sets the camera's horizontal offset


Syntax

local status = self:set_horizontal_offset(
    offset
)

Parameters

TypeNameDescription
floatoffsetHorizontal offset to apply to the camera view

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the horizontal offset
local entity = core.camera.create()

entity:set_horizontal_offset(0.5)

On this page