DarkBASIC Professional Help File

DX11 GET ANIMATION FROM OBJECT

Obtains an animation that was imported along with the given object.
Animations obtained like this are owned by the object and will be destroyed when all references to them are gone. As such you don't need to call
DX11 DELETE ANIMATION on them; doing so will have no effect.

Syntax

    Return Dword = DX11 GET ANIMATION FROM OBJECT(obj, animId)

Parameters

    obj

> Dword
> The object from which to retrieve the animation.

    animId

> Dword
> The index of the animation to retrieve from the object. Begins at 0 and must be below DX11 GET OBJECT ANIMATION COUNT().

Returns

The animation with the given id belonging to the specified object.

See also

ANIMATION Functions Menu
DX11 Function Categories