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 [wiki]Actor animation[/wiki]) of an [wiki]Actor[/wiki].
    [h="2"] Declaration [/h]
    <code cpp>
    VAULTSCRIPT vaultmp::Index (*GetActorMovingAnimation)(vaultmp::ID);
    native GetActorMovingAnimation(ID);
    </code>
    [h="2"] Parameters [/h]
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
    [h="2"] Return value [/h]
    Returns a [wiki="Index"]vaultmp::Index[/wiki] containing the [wiki]Actor animation[/wiki].
    [h="2"] Usage example (C++) [/h]
    <code cpp>
    vaultmp::Index index;
    index = GetActorMovingAnimation(actor);
    </code>
    [h="2"] Related pages [/h]
    [list][*][wiki]AnimToString[/wiki]
    [/LIST]
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Actor functions[/category]