Element/Marker

From Multi Theft Auto: Wiki
Revision as of 05:34, 9 December 2006 by Erorr404 (talk | contribs)
Jump to navigation Jump to search

The marker class represents colored, 3-D entities in the GTA world. There are serveral types of markers, including cylinders and checkpoints. In scripts, markers are often used to trigger some sort of action when a player goes into them.

The element type of this class is "marker".

XML syntax

<marker id="" posX="" posY="" posZ="" type="" .../>

Required Attributes

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

Optional Attributes

  • type: The visual type of the marker to be created. Possible values:
    • "checkpoint": Checkpoint (Note: Currently z position is always ground-level. Only remains visible to a certain height.)
    • "ring": Ring (doughnut-shaped)
    • "cylinder": Cylinder (Note: Currently z position is always ground-level.)
    • "arrow": Animated arrow pointing down
    • "corona": A glowing area
  • size?
  • r?
  • g?
  • b?
  • a?

Related scripting functions