I am looking for a way to read what state my character's FSM is in. For example, I have a state named "jump_up". I want to be able to script something along the lines of this (pseudo code):
if ( FSM.Event ( "jump_up" ) )
{
dostuff.etc
}
How can I go about doing this? Or rather, what is the actual way to do it?