Element: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Added element types)
Line 1: Line 1:
An element is a generic class that represents almost all in-game items. These include:
An element is a generic class that represents almost all in-game items. These include:
* Objects
* Players
* Players
* Vehicles
* Vehicles
* Objects
* Pickups
* Pickups
* Markers
* Markers
* Colshapes
* Blips
* Blips
* Radar areas
* Radar areas
* Colshapes
* Teams
* Remote clients
* Server console


These are all stored internally in a "tree" structure, as such every element has a parent element, be in the ''root'' element, ''map'' or another element. This is purely for declaring the scope of function calls.
These are all stored internally in a "tree" structure, as such every element has a parent element, be in the ''root'' element, ''map'' or another element. This is purely for declaring the scope of function calls.


There are various functions for manipulating the layout of this element tree.
There are various functions for manipulating the layout of this element tree.

Revision as of 01:18, 9 December 2006

An element is a generic class that represents almost all in-game items. These include:

  • Players
  • Vehicles
  • Objects
  • Pickups
  • Markers
  • Colshapes
  • Blips
  • Radar areas
  • Teams
  • Remote clients
  • Server console

These are all stored internally in a "tree" structure, as such every element has a parent element, be in the root element, map or another element. This is purely for declaring the scope of function calls.

There are various functions for manipulating the layout of this element tree.