Skip to content

Timer:alarm

since 1.1.0

Get / Set the alarm value of the timer.

local alarm = timer:alarm([alarm])

Parameters

Name Type Required Description
alarm integer optional

Returns

alarm (integer)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:alarm(120) -- seconds
print(timer:alarm())