Element: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 59086 by Lizzalka (talk))
Line 1: Line 1:
<font face="sans-serif">
An '''element''' is a generic class that can represent almost all in-game [[entity|entities]]. The built-in element types are:
<div style="background:#333;">
 
<div style="height:4px;background:#AAA;"></div>
{{Elements}}
<font color="#FFF" size="5">
 
<p>&nbsp;Ваша версия Adobe Flash Player устарела</p>
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.
</font>
 
<div style="background:#FFF;">
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.
<font color="#F00" size="2">
 
<p>Требуется срочное обновление до текущей версии!</p>
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.
</font>
 
<font color="#000" size="4">
==Related scripting functions==
<p>Adobe Flash Player 30.0.0.164 <font color="#888" size="2">(~18 kB)</font></p>
===Client===
</font>
{{Client element functions}}
<font color="#444" size="2">
===Server===
<p><b>Операционная система:</b> Windows<br><b>Язык:</b> Выбирает пользователь</p>
{{Element functions}}
</font>
[[Category:Scripting Concepts]]
<font color="#000" size="4">
 
<p>Скачать обновление с Яндекс.Диска: yadi.sk/d/AfbiMAr1PkGdww</p>
[[hu:Element]]
</font>
[[it:Elemento]]
</div>
[[ru:Element]]
</div>
[[es:Elemento]]
</font>

Revision as of 06:13, 9 September 2018

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