- Documentation
- Server functions
- getProjectileForce
Function
getProjectileForce
Returns the force the projectile was created with (1 by default).
Syntax
float getProjectileForce(projectile theProjectile)Arguments
theProjectileprojectile- The projectile.
Returns
The force, or false.
Example
addEventHandler("onProjectileCreation", root, function()
outputDebugString("Sila: " .. getProjectileForce(source))
end)