Hello. If I have for example three states s1, s2 and s3. How do I get the current state of the state machine.

while(stateMachine->activeState() == s2)
{
//do something
}

Thanks.