This script allows you to setup “state faces” for each actor.
A state face is just a face picture that will be used when a certain state has been applied.
When the state is removed, the face picture also reverts to the original (or maybe another state face, depending on how many states are applied).
Script: download here
Place this below Materials and above Main.
Note-tag your actors with
<state face: id name index>
`id` is the state ID that this face will apply to `name` is the name of the face, in the Graphics/Faces folder `index` is the index of the face.
You will need to index the face sheet appropriately.
0 1 2 3 4 5 6 7
If you are using one face per sheet, it is just 0.
Note that state priority determines which face will be shown if multiple
states are applied. States with higher priorities will be shown over states
with lower priorities. In the case of a tie, the state that was first applied
will be used.