- Dokumentacja
- Funkcje serwera
- getProjectileCounter
Funkcja
getProjectileCounter
Zwraca licznik pocisku w ms (czas do wybuchu ustawiony przez setProjectileCounter; 0 = brak).
Składnia
int getProjectileCounter(projectile theProjectile)Argumenty
theProjectileprojectile- Pocisk.
Zwraca
Licznik w ms albo false.
Przykład
addEventHandler("onProjectileCreation", root, function()
outputDebugString("Licznik: " .. getProjectileCounter(source))
end)