getElementChildren | Multi Theft Auto: Wiki Skip to content

getElementChildren

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to retrieve a list of the child elements of a given parent element. Note that it will only return direct children and not elements that are further down the element tree.

Syntax

getElementChildren ( )

Code Examples

server

With this map file:

<team1 id="red">
<base name="Mountain Top" />
<base name="Docks" />
<base name="Airport" />
<anything name="no base" />
</team1>

See Also

Element Functions