Pular para o conteúdo

getProjectileCounter

Cliente Projéteis OOP projetil:getCounter()projetil.counter

Devolve quanto tempo falta para o projétil detonar.

number getProjectileCounter ( projectile oProjetil )

Os milissegundos que faltam. Um projétil que já detonou devolve 0. Devolve false se o elemento não for um projétil válido.

local restante = getProjectileCounter(granada)
if restante and restante > 0 then
outputDebugString("explode em " .. restante .. "ms")
end