- Documentation
- Server functions
- getProjectileCounter
Function
getProjectileCounter
Returns the projectile counter in ms (time to explosion set with setProjectileCounter; 0 = none).
Syntax
int getProjectileCounter(projectile theProjectile)Arguments
theProjectileprojectile- The projectile.
Returns
Counter in ms, or false.
Example
addEventHandler("onProjectileCreation", root, function()
outputDebugString("Licznik: " .. getProjectileCounter(source))
end)