Element/Marker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Добавление языков) |
||
(11 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
The marker class represents | The marker class represents colored, 3D shapes in the GTA world. There are several 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"'''. | ||
The size of the marker cannot be specified from XML and defaults to 4.0. | |||
==XML syntax== | ==XML syntax== | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<marker | <marker posX="" posY="" posZ="" type="" .../> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Attributes=== | ===Required Attributes=== | ||
* '''posX''': A float representing the X position of the | * '''posX''': A float representing the X position of the marker. | ||
* '''posY''': A float representing the Y position of the | * '''posY''': A float representing the Y position of the marker. | ||
* '''posZ''': A float representing the Z position of the | * '''posZ''': A float representing the Z position of the marker. | ||
===Optional Attributes=== | ===Optional Attributes=== | ||
* '''type''' | * '''type:''' The visual type of the marker to be created. Possible values: | ||
{{Marker types}} | |||
* '''color:''' The color of the marker in HTML style format #RRGGBB, defaults to red if not specified. | |||
==Related scripting functions== | ==Related scripting functions== | ||
{{Marker functions}} | {{Marker functions}} | ||
[[Category:Element Types]] | |||
[[en:Element/Marker]] | |||
[[ru:Element/Marker]] | |||
[[hu:Element/Marker]] | |||
[[it:Elemento/Marker]] |
Latest revision as of 09:51, 15 April 2021
The marker class represents colored, 3D shapes in the GTA world. There are several 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 size of the marker cannot be specified from XML and defaults to 4.0.
XML syntax
<marker posX="" posY="" posZ="" type="" .../>
Required Attributes
- posX: A float representing the X position of the marker.
- posY: A float representing the Y position of the marker.
- posZ: A float representing the Z position of the marker.
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.
- color: The color of the marker in HTML style format #RRGGBB, defaults to red if not specified.