DarkBASIC Professional Help File

DX11 ENUMERATE OBJECT LIMBS

Enumerates all limbs belonging to the specified object through a depth-first search (the root object will be the first one, followed by its first child,
then the first child of the child of the root limb (if applicable) and so on.
The list of limbs is put into the array that you provide to this function - take note that the array will be cleared of any previous contents and that it must be dim'ed of the DWORD data type!
Also beware that if you delete the object the limbs belong to, its limbs will be deleted too.
Ideally the object should be provided first, however due to how DBPro handles arrays internally the array must be the first argument to this function
since its pointer may change as a result of calling this function, which DBPro can update through a hidden return value.

Syntax

    DX11 ENUMERATE OBJECT LIMBS limbs(), object

Parameters

    limbs()

> Array
> A DWORD array that will be filled with the limbs belonging to the specified object. The array may be empty or not; calling this function will clear it.

    object

> Dword
> The object to enumerate the limbs of

Returns

This function does not return a value.

See also

OBJECT Functions Menu
DX11 Function Categories