Element: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 50040 by Marcin778 (talk))
Line 1: Line 1:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
An '''element''' is a generic class that can represent almost all in-game [[entity|entities]]. The built-in element types are:
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
{{Elements}}
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Any other element type can be created as an abstract element, not referring to any game [[entity]]. For example, '''resource''' and '''map''' elements are created when resources and maps are loaded to group entities they create as their children.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Elements share common functions such as type and list retrieval, a destroy operation to remove both the element and the game entity it is linked to (except for some elements which can't be destroyed, for example client elements), [[element data]] storing and retrieval, and many more common operations.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
All elements are stored internally in a [[Element tree|tree structure]], and as such every element except the '''root''' element has a parent element, that can be the '''root''' element, a '''resource''', '''map''' or another element. This is purely for declaring the scope of function calls.
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
==Related scripting functions==
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
===Client===
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
{{Client element functions}}
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
===Server===
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
{{Element functions}}
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[Category:Scripting Concepts]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
 
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[it:Elemento]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[ru:Element]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
[[es:Elemento]]
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi
Extrem liże hazowi dupsko a Barcioo liże cipsko Trinowi

Revision as of 18:31, 1 January 2017

An element is a generic class that can represent almost all in-game entities. The built-in element types are:

ADDED/UPDATED IN VERSION 1.6.0 r22410:

Any other element type can be created as an abstract element, not referring to any game entity. For example, resource and map elements are created when resources and maps are loaded to group entities they create as their children. Elements share common functions such as type and list retrieval, a destroy operation to remove both the element and the game entity it is linked to (except for some elements which can't be destroyed, for example client elements), element data storing and retrieval, and many more common operations. All elements are stored internally in a tree structure, and as such every element except the root element has a parent element, that can be the root element, a resource, map or another element. This is purely for declaring the scope of function calls.

Related scripting functions

Client



Server