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

OnActorValueChange

This is an old revision of this page, as edited 04-06-2012, 03:24 PM by foxtacles (contribs). It may differ significantly from the current revision.
Gets called when an Actor's value has changed.

[top]Declaration

<code cpp>
VAULTSCRIPT void OnActorValueChange(vaultmp::ID, vaultmp::Index, vaultmp::Value);
forward OnActorValueChange(ID, index, Float:value);
</code>

[top]Parameters

vaultmp::ID - the ID of the Actor
vaultmp::Index - the index of the Actor value
vaultmp::Value - the new value

[top]Return value

None.

[top]Usage example (C++)

<code cpp>
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
}
</code>

[top]Related pages