SetObjectMass: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(uups)
Line 8: Line 8:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setObjectMass ( float mass )
bool setObjectMass ( object theObject, float mass )
</syntaxhighlight>
</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''theObject:''' The object whose mass will be set.
*'''mass:''' The new mass.
*'''mass:''' The new mass.



Revision as of 16:57, 28 April 2013

Accessories-text-editor.png Script Example Missing Function SetObjectMass needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


This function sets the mass of a specified object. Changing the mass leads to a different movement behavior for especially dynamic objects.

Syntax

bool setObjectMass ( object theObject, float mass )

Required Arguments

  • theObject: The object whose mass will be set.
  • mass: The new mass.

Returns

Returns true if the new mass value has been set, false otherwise.

Example

See Also