Difference between revisions of "Element/Radar area"

From Multi Theft Auto: Wiki
Jump to: navigation, search
m
Line 6: Line 6:
 
==XML syntax==
 
==XML syntax==
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
<radararea posX="" posY="" sizeX="" sizeY="" color=""/>
+
<radararea posX="" posY="" sizeX="" sizeY="" color="" dimension=""/>
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 20:56, 10 August 2009

The radar area class represents coloured areas that can be displayed on a player's radar.

The element type of this class is "radararea".

XML syntax

<radararea posX="" posY="" sizeX="" sizeY="" color="" dimension=""/>

Required Attributes

  • posX: A float representing the X position of the vehicle.
  • posY: A float representing the Y position of the vehicle.
  • sizeX: A float representing the width of the radar area
  • sizeY: A float representing the height of the radar area

Optional Attributes

  • color: The color of the radar area in HTML-style format (i.e. #RRGGBBAA). Defaults to red if not specified.
  • dimension: The dimension of the radar area. Defaults to 0 if not specified.

Related scripting functions

Client

Server