Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: neonseastar on December 04, 2018, 10:07:32 PM

Title: Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
Post by: neonseastar on December 04, 2018, 10:07:32 PM
Hey, I'm really new to making games and stretching my legs a bit with PlayMaker, but I also wanted to experiment some with Fungus.

I'm trying to make an FSM that transitions to the next state when the Flowchart Game Object made by Fungus is destroyed. Can anyone help me out? Thanks a bunch!
Title: Re: Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
Post by: jeanfabre on December 05, 2018, 01:40:46 AM
Hi,

 you could have an fsm on that GameObject that listen to the DISABLE system event, which is called just before destroying.

However it would not work if you know that this gameobject could be disabled enabled during its lifetime.

If that's the case, then I can give you a small script that will send a playmaker even when the gameobject is destroy. Let me know if you need this.

Bye,

 Jean