self:set_h_offset

Client

Sets the horizontal offset of the camera


Syntax

local status = self:set_h_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 of a camera
local entity = core.camera.create()

entity:set_h_offset(0.5)

On this page