- Documentation
- Server functions
- setObjectMass
Function
setObjectMass
Stores the object mass (it affects the reaction to hits).
Syntax
bool setObjectMass(object theObject, float mass)Arguments
theObjectobject- The object.
massfloat- The mass.
Returns
true on success.
Example
local obj = createObject(1225, 0, 0, 3)
setObjectMass(obj, 500)
Notes
State for scripts. The object's physics in the game does not change.