Element/Collision shape: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (Minor changes, added Needs Checking notice)
Line 1: Line 1:
{{Needs Checking|Needs confirmation on the XML syntax for all colshape types. --[[User:Jbeta|jbeta]] 06:33, 23 August 2007 (CDT)}}
__NOTOC__
__NOTOC__
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 collision detection shapes that can be created in the GTA world. Collision shapes are typically used to detect elements moving through them and perform actions when they do.


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

Revision as of 11:33, 23 August 2007

Dialog-information.png This article needs checking.

Reason(s): Needs confirmation on the XML syntax for all colshape types. --jbeta 06:33, 23 August 2007 (CDT)


The collision shape class represents invisible collision detection shapes that can be created in the GTA world. Collision shapes are typically used to detect elements moving through them and perform actions when they do.

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