Skip to content

Basic functions

apoxhu edited this page Dec 22, 2019 · 3 revisions

Print functions:

You can use printf functionality on all of the following commands.

Echo ( string:format ... )
Returns nothing.
Prints information on system console.

Printf ( string:format ... )
Returns nothing.
Prints information on command line feedback.

ErrEcho ( string:format ... )
Returns nothing.
Prints information on system console as an error (with red text).

ErrPrintf ( string:format ... )
Returns nothing.
Prints information on command line feedback as an error (with red text).

Running commands:

Cmd ( string:format[, light userdata:undo], ... )
Returns string:command execution result (Ok, Syntax Error, Illegal Command...)
You can use printf functionality.
Example: Cmd("Go Exec %d Page %d",exec,page)

CmdIndirect ( string:cmd_to_execute[,light_userdata:undo[,light_userdata:target]] )
Returns nothing.
?

CmdIndirectWait ( string:cmd_to_execute[,light_userdata:undo[,light_userdata:target]] )
Returns nothing.
?

Timer ( function:name, number:dt, number:max_count[, function:cleanup][, light userdata:context object] )
Returns nothing.

Time ()
Returns a float as the current time passed in seconds since the start of the software?.

Clone this wiki locally