Element/Marker: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 6: Line 6:
==XML syntax==
==XML syntax==
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<marker id="" posX="" posY="" posZ="" type=""/>
<marker id="" posX="" posY="" posZ="" type="" .../>
</syntaxhighlight>
</syntaxhighlight>



Revision as of 05:32, 9 December 2006

The marker class represents a colored 3-D shape 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