This site has been archived and made available for preservation purposes. No edits can be made.
GetActorValue
(Difference between revisions)
Return to current revision
-
-
Retrieves the current value of an [[Actor value]].
== Declaration ==
<code cpp>
VAULTSCRIPT vaultmp::Value (*GetActorValue)(vaultmp::ID, vaultmp::Index);
native Float:GetActorValue(ID, index);
</code>
== Parameters ==
'''[[ID|vaultmp::ID]]''' - the ID of the [[Actor]]
'''[[Index|vaultmp::Index]]''' - the index of the [[Actor value]]
== Return value ==
Returns a [[Value|vaultmp::Value]] containing the value.
== Usage example (C++) ==
<code cpp>
vaultmp::Value value;
value = GetActorValue(actor, index);
</code>