π³οΈevents
Functions:
:set
Name
Type
Description
:unset
Name
Type
Description
:call
Name
Type
Description
Alternative behavior:
:__call
Name
Type
Description
Last updated
Last updated
local function function_callback()
print(globals.tickcount)
end
-- Sets the createmove callback for the specified function
events.createmove(function_callback)
-- Execute after 0.5 secs
utils.execute_after(0.5, function()
-- Toggles the createmove callback for the specified function
events.createmove(function_callback)
end)local function function_callback()
print(globals.tickcount)
end
events.createmove(function_callback, true) -- Sets the callback
events.createmove(function_callback, false) -- Unsets the callback