getProjectileForce | Multi Theft Auto: Wiki Skip to content

getProjectileForce

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns the force of the specified projectile.

Syntax

getProjectileForce ( )

Code Examples

client

Example 1:This example would outputs the force of the projectile on 1-100 scale. This function just works with projectiles which you throw so just grenades, satchel charge etc

addEventHandler("onClientProjectileCreation", getRootElement(),
--The source of this event is the projectile that was created.
function ()
local getForce = getProjectileForce(source)
outputChatBox(getForce*100) -- outputs the force of the projectile on 1-100 scale
end
)