Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TonyCooper on June 14, 2021, 05:26:08 AM

Title: How to find out which FSM is enabling a gameobject
Post by: TonyCooper on June 14, 2021, 05:26:08 AM
Hello all, I have an issue where a gameobject is suddenly being enabled during gameplay that shouldn't be. I must be enabling it somewhere on some FSM but I am having trouble locating which one it is.
The gameobject itself doesn't have an FSM on it, so I was wondering if there is any debug way to find out which FSM is enabling it while the game is running?

Thanks, Tony.
Title: Re: How to find out which FSM is enabling a gameobject
Post by: Fat Pug Studio on June 14, 2021, 11:48:40 AM
Is it turned on by global event?
Title: Re: How to find out which FSM is enabling a gameobject
Post by: TonyCooper on June 14, 2021, 12:26:22 PM
I think it's probably just a Set Property on the 'active' property in an FSM, but I've been through the main FSMs states that affect this asset step-by-step and haven't found which one is setting this. So, it must be a stray state somewhere that I've forgotten about.
Title: Re: How to find out which FSM is enabling a gameobject
Post by: Fat Pug Studio on June 14, 2021, 02:38:26 PM
Well i guess the only way then is to go to action browser, find usages and dig.
Title: Re: How to find out which FSM is enabling a gameobject
Post by: TonyCooper on June 14, 2021, 04:03:38 PM
Damn :(  Oh well, thanks anyway, and wish me happy hunting...