I have a pretty simple animation state machine, handling states of Idle, Following, and Dead, with Idle as the initial state. In some cases, I would like the character to begin the level already in a state other than Idle. The specific example I am thinking of would be a character pretending to be dead, so on entry the character would already be in a dead or lying down state, and could then transition to a standing/walking state. I can’t seem to figure out anyway to do this. Does anyone have any ideas how this could be done? I have attached my current state machine for reference.
If anyone comes across this, I was able to solve it by creating an empty state in between the states I wanted to alternate between, and using this empty state as the entry position. To transition from this empty state, I used a bool to determine if the character was already dead, as well as a “start” bool that I initialize to true in the begin play. This is to make sure the bool for if the character is dead is assigned before moving out of the entry state. Finally, the transition rules from the entry state should have a blend duration of 0. I doubt this is the best solution, but it worked for me.