getProjectileCounter
Client-side
Server-side
Shared
Pair: setProjectileCounter
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
Get the time left before a projectile detonates.
Syntax
getProjectileCounter ( )Code Examples
client
With this example you can find out how long does it take for a projectile to explode/end
function getProjectileBoomTime()outputChatBox("Time for "..getProjectileType(source).." to explode/end is "..getProjectileCounter(source).." miliseconds.",255,0,0)endaddEventHandler("onClientProjectileCreation",root,getProjectileBoomTime)