When I attempt to use the examples shown on site for making a worldobject registerevent I get an error on the worldobject, implying it is a nil value like so:
lua_scripts/test.lua:5: attempt to index global 'worldobject' (a nil value)
Tried a few different examples with the same outcome, so naturally I expect its probably some oversight on my part.
Tested examples:
local function YourFunction(eventid, delay, repeats, worldobject)
worldobject:SendUnitSay("My name is " .. worldobject:GetName(), 255)
end
worldobject:RegisterEvent(YourFunction, 10000, 5)
Run Code Online (Sandbox Code Playgroud)
local function …Run Code Online (Sandbox Code Playgroud)