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

OnActorBaseValueChange

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

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::Void OnActorBaseValueChange(vaultmp::ID, vaultmp::Index, vaultmp::Value);
forward OnActorBaseValueChange(ID, index, Float:value);

[top]Parameters

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

[top]Return value

None.

[top]Usage example (C++)

Code cpp:
vaultmp::Void VAULTSCRIPT OnActorBaseValueChange(vaultmp::ID actor, vaultmp::Index index, vaultmp::Value value)
{
    vaultmp::String value_name;
    value_name = ValueToString(index);
    // value_name now contains the string representation of the actor value
}

[top]Related pages