self:get_h_offset

Client

Retrieves the horizontal offset of the camera


Syntax

local offset = self:get_h_offset()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatoffsetCurrent horizontal offset of the camera

Examples

Get the horizontal offset of a camera
local entity = core.camera.create()

core.engine.print("info", "Horizontal offset:", entity:get_h_offset())

On this page