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

GetActorValue

(Difference between revisions)
Return to current revision
  1.  
    Retrieves the current value of an [wiki]Actor value[/wiki].
    [h="2"] Declaration [/h]
  2. -
    <code cpp>
  3. +
    [highlight=cpp]
  4.  
    VAULTSCRIPT vaultmp::Value (*GetActorValue)(vaultmp::ID, vaultmp::Index);
    native Float:GetActorValue(ID, index);
  5. -
    </code>
  6. +
    [/highlight]
  7.  
    [h="2"] Parameters [/h]
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
    [b][wiki="Index"]vaultmp::Index[/wiki][/b] - the index of the [wiki]Actor value[/wiki]
    [h="2"] Return value [/h]
    Returns a [wiki="Value"]vaultmp::Value[/wiki] containing the value.
    [h="2"] Usage example (C++) [/h]
  8. -
    <code cpp>
  9. +
    [highlight=cpp]
  10.  
    vaultmp::Value value;
    value = GetActorValue(actor, index);
  11. -
    </code>
  12. +
    [/highlight]
    [h="2"] Related pages [/h]
    [list][*][wiki]SetActorValue[/wiki]
    [/LIST]
  13.  
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Actor functions[/category]