- Documentation
- Server functions
- getObjectMass
Function
getObjectMass
Returns the object mass stored with setObjectMass (1 by default).
Syntax
float getObjectMass(object theObject)Arguments
theObjectobject- The object.
Returns
The mass.
Example
local obj = createObject(1225, 0, 0, 3)
outputDebugString(getObjectMass(obj))