wasEventCancelled
Compartilhado
Diz se o último evento que terminou de rodar neste lado foi cancelado.
bool wasEventCancelled()
Retorno
true se o último evento terminado foi cancelado, senão false.
Exemplo
addEvent("onShopOpen")
triggerEvent("onShopOpen", resourceRoot)
if wasEventCancelled() then
outputDebugString("loja fechada: " .. getCancelReason())
endAtençãoDentro de um handler, a resposta é sobre o último evento que já terminou, não sobre o que está rodando.