Element/Collision shape: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 2: Line 2:
The collision shape class represents invisible shapes that exist in the GTA world. Collision shapes are typically used to detect elements that move through them.
The collision shape class represents invisible shapes that exist in the GTA world. Collision shapes are typically used to detect elements that move through them.


The element type of this class is '''"colshape"'''.
The element types for this class are '''"colcube"''', ....


==XML syntax==
==XML syntax==

Revision as of 08:20, 18 December 2006

The collision shape class represents invisible shapes that exist in the GTA world. Collision shapes are typically used to detect elements that move through them.

The element types for this class are "colcube", ....

XML syntax

<colshape posX="" posY="" posZ="" .../>

Required Attributes

  • posX: A float representing the X position of the vehicle.
  • posY: A float representing the Y position of the vehicle.
  • posZ: A float representing the Z position of the vehicle.
  • ...: ...

Optional Attributes

  • ...: ...

Related scripting functions