playMaker

Author Topic: Set state works even on disabled objects or disabled FSMs  (Read 332 times)

emildragan

  • Playmaker Newbie
  • *
  • Posts: 28
Set state works even on disabled objects or disabled FSMs
« on: January 20, 2023, 06:38:57 PM »
Hi,

I see a very strange behavior. I have a FSM which is disabled and the game object containing it is also disabled. When I call Set State from an external script, it is changing the state inside that FSM and triggers what is in that state, even though that FSM is disabled and the game object is disabled. The whole idea of disabling is to not do anything, until I enable it, or enable the entire game object.

I cannot use another logic, there is an external script that sets states, but I don't think it should do anything on a disabled object.

Can someone look into it and check if it is a bug or not?

Thank you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Set state works even on disabled objects or disabled FSMs
« Reply #1 on: January 22, 2023, 10:59:14 AM »
Hi.
I can confirm that setState will still trigger.
I will ping Alex

For now you can use SendEvent instead with global transitions.