<aside> ⚡ script "core_updatecustomstate" (int i)
</aside>
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>
i
: int - This value is appended to CustomState
to create the final state which is set for the calling actor. For this script, it must be a positive value to have meaningful effect!