Skip to content

Timer:startCondition

since 1.1.0

Get / Set the start condition of the timer.

local condition = timer:startCondition([condition])

Parameters

Name Type Required Description
condition Source optional

Returns

condition (Source)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:startCondition(CATEGORY_ALWAYS_ON)