SetObjectStatic

From Multi Theft Auto: Wiki
Revision as of 17:00, 30 March 2008 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Makes an object static or non-static. Static objects are rock solid in one place, unaffected by gravity and pushing. Nonstatic objects can fall, be pushed ar...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Makes an object static or non-static. Static objects are rock solid in one place, unaffected by gravity and pushing. Nonstatic objects can fall, be pushed around etc.

Note that not all objects that are static by default can be made nonstatic.

Syntax

bool setObjectStatic ( object theObject, bool toggle )

Required Arguments

  • theObject: the object whose behaviour you want to change.
  • toggle: true makes the object static, false makes it nonstatic.

Returns

Returns true if successful, false otherwise.

Example

See Also