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

AnimToString

(Difference between revisions)
Return to current revision
  1.  
    Retrieves the string representation of an [wiki]Actor animation[/wiki].
    [h="2"] Declaration [/h]
  2. -
    <code cpp>
  3. +
    [highlight=cpp]
  4.  
    VAULTSCRIPT std::string (*AnimToString)(vaultmp::Index);
    native AnimToString(index, value{});
  5. -
    </code>
  6. +
    [/highlight]
  7.  
    [h="2"] Parameters [/h]
    [b][wiki="Index"]vaultmp::Index[/wiki][/b] - the index of the [wiki]Actor animation[/wiki]
    [b]value[/b] (PAWN only) - an array large enough to hold at least 64 characters
    [h="2"] Return value [/h]
    The C++ version returns a std::string containing the string representation of the actor animation. The PAWN version has no return value.
    [h="2"] Usage example (C++) [/h]
    <code cpp>
    std::string value;
    value = AnimToString(index);
    </code>
    [h="2"] Usage example (PAWN) [/h]
    <code c>
    new value{64};
    AnimToString(index, value);
    </code>
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Misc functions[/category]