<aside> ⚡ script "core_updatecustomstate" (int i)

</aside>

Usage


Much like [core_setcustomstate](<https://mm8bdm.notion.site/core_setcustomstate-9508fca96bfa48a288571fa774e07ecc>), This script can be used to change the calling actor’s state to CustomStateX where X is the value passed for the i parameter.

However, this script will also store the previously set custom state on the actor and will only perform subsequent updates if the new state is different than the last.

<aside> 🚨 Although it may be tempting to use this for players as an implementation of custom skin animations, it is not a good idea! This script performs no safety checking to prevent interrupting pain or even death states! Proceed with caution!

</aside>

Parameters

See Also


core_count_customstateflag

core_set_customstateflag

core_setcustomstate