- Documentation
- Server functions
- getProjectileType
Function
getProjectileType
Returns the projectile type (weapon ID).
Syntax
int getProjectileType(projectile theProjectile)Arguments
theProjectileprojectile- The projectile.
Returns
The type, or false.
Example
addEventHandler("onProjectileCreation", root, function(creator)
outputDebugString("Pocisk rodzaju " .. getProjectileType(source))
end)