Element/Radar area: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ The radar area class represents radar area's controlled by both the server and the client. This class is created when a radar area is created and destroyed when it is destroyed v...)
 
m (Добавление языков)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
The radar area class represents radar area's controlled by both the server and the client. This class is created when a radar area is created and destroyed when it is destroyed via a script or a player disconnects.
The radar area class represents coloured areas that can be displayed on a player's radar.


The element type of this class is '''"radararea"'''.
The element type of this class is '''"radararea"'''.
==XML syntax==
<syntaxhighlight lang="xml">
<radararea posX="" posY="" sizeX="" sizeY="" color="" dimension=""/>
</syntaxhighlight>
===Required Attributes===
* '''posX''': A float representing the X position of the radar area.
* '''posY''': A float representing the Y position of the radar area.
* '''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 9: Line 24:
===Server===
===Server===
{{Radar area functions}}
{{Radar area functions}}
[[Category:Element Types]]
[[en:Element/Radar area]]
[[ru:Element/Radar area]]
[[hu:Element/Radar area]]
[[it:Elemento/Area radar]]

Latest revision as of 10:13, 15 April 2021

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 radar area.
  • posY: A float representing the Y position of the radar area.
  • 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