Element/Marker: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (Added the Marker types template and a Needs Checking notice.)
Line 1: Line 1:
__NOTOC__
__NOTOC__
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.
{{Needs Checking|Needs confirmation on the XML syntax. --[[User:Jbeta|jbeta]] 06:39, 23 August 2007 (CDT)}}
 
The marker class represents colored, 3D shapes in the GTA world. There are serveral types of markers, including cylinders and checkpoints. In scripts, markers are often used to mark spots and trigger some sort of action when a player goes into them.


The element type of this class is '''"marker"'''.
The element type of this class is '''"marker"'''.
Line 16: Line 18:
===Optional Attributes===
===Optional Attributes===
* '''type''': The visual type of the marker to be created. Possible values:
* '''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.)
{{Marker types}}
** '''"ring"''': Ring (doughnut-shaped)
** '''"cylinder"''': Cylinder (Note: Currently z position is always ground-level.)
** '''"arrow"''': Animated arrow pointing down
** '''"corona"''': A glowing area
*size?
*size?
*r?
*r?

Revision as of 11:39, 23 August 2007


Dialog-information.png This article needs checking.

Reason(s): Needs confirmation on the XML syntax. --jbeta 06:39, 23 August 2007 (CDT)

The marker class represents colored, 3D shapes in the GTA world. There are serveral types of markers, including cylinders and checkpoints. In scripts, markers are often used to mark spots and 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": A race checkpoint. These are very tall, but not infinite, light pillars. Checkpoints snap to ground and become invisible after going over a certain Z height.
    • "ring": Doughnut shaped ring, normally used for aircraft.
    • "cylinder": Small glowing ground ring. These are the glow markers you walk into to activate missions or events in single player.
    • "arrow": Arrow pointing down. These are the arrows on the doors you can enter in single player, except MTA's are not animated by default.
    • "corona": A glowing ball of light.
  • size?
  • r?
  • g?
  • b?
  • a?

Related scripting functions