I'm not able to post on Rift forums (Rift Lite, etc. - willing to change that very soon).
Code:
local queueStatus = false
local function QueueStatus()
queueStatus = Inspect.Queue.Status("global")
if queueStatus then return end -- global queue is still backlogged, var is true so exit out
queueStatus = false
end
table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"})
local commandOne = false
local commandTwo = false
local commandThree = false
function MyAddon:DoCommands()
if not commandOne and not queueStatus then
command.blah1
commandOne = true
elseif not commandTwo and not queueStatus then
command.blah2
commandTwo = true
elseif not commandThree and not queueStatus then
command.blah3
commandThree = true
end
commandOne, commandTwo, commandThree = false, false, false
end
I'm not able to understand the concept post. I can't find anything related to "Event.Queue.Status", which appears here:
Code:
table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"})
Anytime I try to run DoCommands(), it never goes past the first step.
What I'm willing to do is, wait until a Command.Item.Move() is complete, then run 2 functions.
Ideas how I can do that ?
Thanks in advance!