This site has been archived and made available for preservation purposes. No edits can be made.
OnActorValueChange
Gets called when an
Actor's value has changed.
Code cpp:
VAULTSCRIPT vaultmp::Void OnActorValueChange(vaultmp::ID, vaultmp::Index, vaultmp::Value);
forward OnActorValueChange(ID, index, Float:value);
vaultmp::ID - the ID of the
Actor
vaultmp::Index - the index of the
Actor value
vaultmp::Value - the new value
None.
Code cpp:
vaultmp::Void VAULTSCRIPT OnActorValueChange(vaultmp::ID actor, vaultmp::Index index, vaultmp::Value value)
{
std::string value_name;
value_name = ValueToString(index);
// value_name now contains the string representation of the actor value
}