Scheduler Lua API

From Off Grid Wiki
Revision as of 17:20, 22 June 2017 by Rich (talk | contribs) (Rich moved page Scheduler Lua API to Lua Apis/Scheduler Lua API without leaving a redirect)
Jump to navigation Jump to search

Template:OffGridDocStart

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