RU/Marker

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Маркер представляет собой цветную 3D фигуру в мире GTA. Есть несколько типов маркеров, короно-образные, гоночные чекпоинты, кольце-образные и тд. В сценарии, маркеры часто используется для обозначения места или чтобы вызвать какое-то действие, когда игрок переходит в них.

Тип элемента этого класса "маркер".

Размер маркера не может быть указан с XML и по умолчанию равен 4,0.

XML синтаксис

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

Required Attributes

  • posX: Координата X позиции маркера.
  • posY: Координата Y позиции маркера.
  • posZ: Координата Z позиции маркера.

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.

Related scripting functions

Shared