getCancelReason
Compartilhado
Dá o motivo passado a cancelEvent no último evento que terminou de rodar neste lado.
string getCancelReason()
Retorno
O motivo, ou uma string vazia se não houve motivo.
Exemplo
addEvent("onShopOpen")
if not triggerEvent("onShopOpen", resourceRoot) then
outputDebugString("loja fechada: " .. getCancelReason())
end