SetElementCollidableWith: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{Client function}}  
{{Client function}}  
__NOTOC__  
__NOTOC__  
'''NOTE: This function does not work correctly in 1.0.1 - Only use in 1.0.2'''
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.<br>
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.<br>
'''Note:''' You can only use this function with the element types listed below.
'''Note:''' You can only use this function with the element types listed below.

Revision as of 22:04, 28 October 2009

This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.
Note: You can only use this function with the element types listed below.

Syntax

bool setElementCollidableWith ( element theElement, element withElement, bool enabled ) 

Required Arguments

  • theElement: The element which colliding you want to change
  • withElement: The other element you wish the first entity to collide with
  • enabled: A boolean to indicate whether elements should be able to collide with eachother (true) or not (false)

Returns

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

Example

Click to collapse [-]
Client
-- TODO

See Also