RU/Marker: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
Размер маркера не может быть указан с XML и по умолчанию равен 4,0.
Размер маркера не может быть указан с XML и по умолчанию равен 4,0.


==XML syntax==
==XML синтаксис==
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<marker posX="" posY="" posZ="" type="" .../>
<marker posX="" posY="" posZ="" type="" .../>
Line 12: Line 12:


===Required Attributes===
===Required Attributes===
* '''posX''': A float representing the X position of the pickup.
* '''posX''': Координата X позиции маркера.
* '''posY''': A float representing the Y position of the pickup.
* '''posY''': Координата Y позиции маркера.
* '''posZ''': A float representing the Z position of the pickup.
* '''posZ''': Координата Z позиции маркера.


===Optional Attributes===
===Optional Attributes===

Revision as of 14:07, 7 April 2010

Маркер представляет собой цветную 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