M MY Multiplayer: Wiki
Side
Kind

getElementParent

Shared

Reads an element's parent in the element tree.

element|nil getElementParent(element element)

Parameters

NameTypeDescription
elementelementThe element to read.

Returns

The parent element, or nil for the root, which has none.

Example

local parent = getElementParent(source)
if parent == resourceRoot then
    outputDebugString("element of this resource's map")
end

See also