the .setState() is not working as I want it to.
That should set the object’s state to number 3, right? (top row, 3rd from the left) And it works like copy state?
I tried with a scene with the default cube and made five states. Every state had an always actuator - and - movement. Every state had a movement or rotation on different axis so there’s no mistake which state is active. Then a script in the first state with the above code and tested it with different numbers in setState(). State 2 and 3 looks to both be number 2. 4 looks like 3 should. 5 like state 2 again. Then nothing until state 10 which again acts state 2. No warning in the console.
am I doing something completely wrong? if this looks correct I can post a blend if you don’t want to make this simple scene yourself.