hi.
just thinking out of my head,
Maybe you can have a 2nd fsm.
On that fsm use a 'Get fsm int' and get the axis on the 1st fsm.
Then use an int compare to check if value is '0' or not (you can also get "Fsm Int Compare" on the
Ecosystem instread)
if value is not 0, get the rotation value by using get fsm vector2 or vector3 depending on your needs.
Then make a state with a next frame event and loop back (if 0 AND if not 0)
Now you can get the value from the 2nd fsm to set the rotation on the object.
As i said i did not test this