playMaker

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

neonseastar

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
« on: December 04, 2018, 08: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: 15371
  • Official Playmaker Support
    • View Profile
Re: Finding Out If A Game Object Still Exists (Fungus and PlayMaker)
« Reply #1 on: December 04, 2018, 11:40:46 PM »
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