Skip to content
Gilberto Romero edited this page Aug 28, 2016 · 3 revisions

System API Functions

system.restart( )

Restarts the computer.

system.shutdown( )

Shuts the computer down.

system.pushEvent( string EventName, ... )

Returns: boolean Success

Pushes an event into the event queue. Returns a boolean value, with the value being true if the event was successfully put into the queue. If the value was false, that means the queue has too many events in it as it is.

system.startTimer( number time )

Returns: number TimerID

The value given for time is recognized as seconds. When using this function, an event will be queued once the timer has gone off, with the second argument of the event being the TimerID given to you.

system.cancelTimer( number timerID )

This cancels a timer, preventing it from queuing an event before it has gone off.

Clone this wiki locally