Postby Emral » Tue Jan 05, 2016 11:15 am
With LunaLua you'll make it look like a loop, while it really gets interrupted for a frame to check if it should loop again:
local looping = true
function onEvent(calledEvent)
if calledEvent == "startLoop" and looping == true then
triggerEvent("actuallyLoop")
end
if calledEvent == "cancelLoop" then
looping = false
end
end