- Documentation
- Shared functions
- getAttachedElements
Function
getAttachedElements
Returns the elements attached to an element.
Syntax
table getAttachedElements(element theElement)Arguments
theElementelement- The element.
Returns
A table of elements.
Example
addEventHandler("onVehicleExplode", root, function()
for _, el in ipairs(getAttachedElements(source)) do
destroyElement(el)
end
end)