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

GetActorMovingAnimation

(Difference between revisions)
Return to current revision
Current Revision 04-06-2012, 03:24 PM
  1. -
    Retrieves the current moving animation (see [[Actor animation]]) of an [[Actor]].

    == Declaration ==
  2. +
    Retrieves the current moving animation (see [wiki]Actor animation[/wiki]) of an [wiki]Actor[/wiki].
    [h="2"] Declaration [/h]
  3.  
    <code cpp>
    VAULTSCRIPT vaultmp::Index (*GetActorMovingAnimation)(vaultmp::ID);
    native GetActorMovingAnimation(ID);
    </code>
  4. -
    == Parameters ==

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

    == Return value ==

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

    == Usage example (C++) ==

  5. +
    [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]
  6.  
    <code cpp>
    vaultmp::Index index;
    index = GetActorMovingAnimation(actor);
  7. -
    </code>
  8. +
    </code>
    [h="2"] Related pages [/h]
    [list][*][wiki]AnimToString[/wiki]
    [/LIST]
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Actor functions[/category]