playMaker

Author Topic: Finding Out If A Game Object Still Exists (Fungus and PlayMaker)  (Read 1094 times)

neonseastar

  • Playmaker Newbie
  • *
  • Posts: 1
Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
« 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
« Reply #1 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