This is a quick and dirty hack for a random play storable action, more of a POC than anything. I copied some of the code from AssignNextAnimation(), but there's stuff I don't handle like the animationLayer check because I don't what it does or how to do it.
I also never unregister it, I'm not sure where to do it and it'd have to be somewhat smart so that it stays registered if there are still animations left in the group when one is deleted.
This is a quick and dirty hack for a random play storable action, more of a POC than anything. I copied some of the code from
AssignNextAnimation()
, but there's stuff I don't handle like theanimationLayer
check because I don't what it does or how to do it.I also never unregister it, I'm not sure where to do it and it'd have to be somewhat smart so that it stays registered if there are still animations left in the group when one is deleted.