ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getProjectileCounter

Function

getProjectileCounter

ServerProjectilesIdentical to MTA:SA

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)

See also