SetElementCollisionsEnabled

From Multi Theft Auto: Wiki
Revision as of 03:24, 13 August 2007 by Talidan (talk | contribs) (Server only -> client only)
Jump to navigation Jump to search

This function can disable or enable an element's collisions. An element without collisions does not interact with the physical environment and remains static.

Syntax

bool setElementCollisionsEnabled ( element theElement, bool enabled ) 

Required Arguments

  • theElement: The element you wish to set the collisions of
  • enabled: A boolean to indicate whether collisions are enabled (true) or disabled (false)

Returns

Returns true if the collisions were set succesfully, false otherwise.

Example

Click to expand [+]
Client

See Also