|
|
| Line 1: |
Line 1: |
| {{Needs_Checking|Water must be considered as an element}}
| | ---- |
|
| |
|
| An '''element''' is a generic class that can represent almost all in-game [[entity|entities]]. The built-in element types are:
| | ---- |
|
| |
|
| {{Elements}}
| |
|
| |
|
| 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.
| | == '''We apologize for the inconvenience, but the site is temporarily blocked.''' == |
| | But you can '''[https://yadi.sk/d/PWx5Ju_83akbp8 download an offline version of Multi Theft Auto wiki]''' |
|
| |
|
| 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 [[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.
| | ---- |
|
| |
|
| ==Related scripting functions==
| | ---- |
| ===Client===
| |
| {{Client element functions}}
| |
| ===Server===
| |
| {{Element functions}}
| |
| [[Category:Scripting Concepts]]
| |
| | |
| [[hu:Element]]
| |
| [[it:Elemento]]
| |
| [[ru:Element]]
| |
| [[es:Elemento]]
| |
Revision as of 09:05, 1 September 2018
We apologize for the inconvenience, but the site is temporarily blocked.
But you can download an offline version of Multi Theft Auto wiki