Hi.
I'm trying to do a simple switch with a cube.
When I use the "Mouse Pick Event" to send an event on mouse down, it does a infinite loop. I though that the mouse down event would occur once. But it seems that when I return to the starting state (Which have the Mouse Pick Event action), the state finishes and execute my transition for Mouse Down again and again, infinite loop.
But, if I leave everything the same, but instead of using a Mouse Pick Event action, I use a system event transition of "MOUSE DOWN", and no action in the starting state, all is working exactly as intended. Why is that ?
I need Mouse Pick Event to check for raycast distance, so the button cannot be used from too far away.
I attached a pic of the FSM to this post.
Note: The FSM work like this in short: I take a bool from another FSM. I store it into a local bool into the switch FSM. I check against that local bool. True or False determine if I turn on or off the other FSM.