Scheduler Lua API: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
(removing StartDocs tag)
m (Rich moved page Lua Apis/Scheduler Lua API to Scheduler Lua API without leaving a redirect: removing sub-pages)
(No difference)

Revision as of 16:53, 26 June 2017

Scheduler

Description

The Scheduler api allows users to Schedule callback events based on specific time values

Functions

CallInSecsWorld

Scheduler.CallInSecsWorld(func, timeInSecs)

Expected parameter types

func Lua Type
timeInSecs number (optional)

Description: Schedule a lua function to be called in timeInSecs world time (1 sec real time = 3 secs world

Returns: The id of the scheduled event

CallInSecsReal

Scheduler.CallInSecsReal(func, timeInSecs)

Expected parameter types

func Lua Type
timeInSecs number (optional)

Description: Schedule a lua function to be called in timeInSecs real time

Returns: The id of the scheduled event


Docs last hacked together on: 09/05/2017 12:59