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

Function

getProjectileForce

ServerProjectilesIdentical to MTA:SA

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)

See also