-
Notifications
You must be signed in to change notification settings - Fork 0
Sandbox: Lua: Engine
Aviril edited this page May 9, 2023
·
10 revisions
Vital exposes engine/application's specific APIs for sandboxing purposes.
local int: result = engine.getSystemTick()
local int: result = engine.getApplicationTick()
local int: result = engine.getClientTick()
local bool: result = engine.loadString(string: buffer)
local bool: state = engine.bindKey(
string: key,
function: exec
)
local bool: state = engine.unbindKey(
string: key,
function: exec
)
local bool: state = engine.executeBindKey(
string: key
)
local bool: state = engine.bindCommand(
string: command,
function: exec
)
local bool: state = engine.unbindCommand(
string: command,
function: exec
)
local bool: state = engine.executeBindCommand(
string: command
)