This site has been archived and made available for preservation purposes. No edits can be made.

GetActorMovingAnimation

(Difference between revisions)
Return to current revision
  1. -
    Retrieves the current moving animation (see [[Actor animation]]) of an [[Actor]].

    == Declaration ==
    <code cpp>
    VAULTSCRIPT vaultmp::Index (*GetActorMovingAnimation)(vaultmp::ID);
    native GetActorMovingAnimation(ID);
    </code>
    == Parameters ==

    '''[[ID|vaultmp::ID]]''' - the ID of the [[Actor]]

    == Return value ==

    Returns a [[Index|vaultmp::Index]] containing the [[Actor animation]].

    == Usage example (C++) ==

    <code cpp>
    vaultmp::Index index;
    index = GetActorMovingAnimation(actor);
    </code>