(Difference between revisions)
Return to current revision
-
-
Retrieves the current base value of an [[Actor value]].
== Declaration ==
<code cpp>
-
+
Retrieves the current base value of an [wiki]Actor value[/wiki].
[h="2"] Declaration [/h]
[highlight=cpp]
-
VAULTSCRIPT vaultmp::Value (*GetActorBaseValue)(vaultmp::ID, vaultmp::Index);
native Float:GetActorBaseValue(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 base value.
== Usage example (C++) ==
<code cpp>
-
+
[/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 base value.
[h="2"] Usage example (C++) [/h]
[highlight=cpp]
-
vaultmp::Value value;
value = GetActorBaseValue(actor, index);
-
-
</code>
-
+
[/highlight]
[h="2"] Related pages [/h]
[list][*][wiki]SetActorBaseValue[/wiki]
[/LIST]
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Actor functions[/category]