self:get_horizontal_offset

Client

Retrieves the camera's horizontal offset


Syntax

local result = self:get_horizontal_offset()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatresultCurrent horizontal offset of the camera

Examples

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

core.engine.print("info", entity:get_horizontal_offset())

On this page