Element/Radar area: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:


The element type of this class is '''"radararea"'''.
The element type of this class is '''"radararea"'''.
==XML syntax==
<syntaxhighlight lang="xml">
<colshape posX="" posY="" sizeX="" sizeY="" color=""/>
</syntaxhighlight>
===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==
==Related scripting functions==
Line 10: Line 25:
===Server===
===Server===
{{Radar area functions}}
{{Radar area functions}}
[[Category:Element Types]]

Revision as of 16:47, 1 January 2008


Dialog-information.png This article needs checking.

Reason(s): Needs XML syntax. --jbeta 13:08, 30 August 2007 (CDT)

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

<colshape posX="" posY="" sizeX="" sizeY="" color=""/>

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

Shared



Server