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 [wiki]Actor value[/wiki].
[h="2"] Declaration [/h]
[highlight=cpp]
VAULTSCRIPT vaultmp::Value (*GetActorValue)(vaultmp::ID, vaultmp::Index);
native Float:GetActorValue(ID, index);
[/highlight]
[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]
[highlight=cpp]
vaultmp::Value value;
value = GetActorValue(actor, index);
[/highlight]
[h="2"] Related pages [/h]
[list][*][wiki]SetActorValue[/wiki]
[/LIST]
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Actor functions[/category]