playMaker

Author Topic: GameObject Destroy Self  (Read 1025 times)

kici

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
    • KZ Development
GameObject Destroy Self
« on: March 10, 2014, 08:21:24 AM »
hi,

I know I can do GameObject destroy and put a "time" delay on when to disappear,
however, Destroy Self has no "time" delay option... how can I create this? or can you update playmaker to have this option to delay the destroy, I realize I can do a "wait" and then do destroy self, is that necessary?

Thanks

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 352
    • View Profile
Re: GameObject Destroy Self
« Reply #1 on: March 10, 2014, 08:53:58 AM »
Hi Kici,

The GameObjectDestroy doesnt have a delay option. You have to setup 2 states, one to send a delayed event and one to destroy.

State 1: Use the 'Send Event' action (specify time in the 'delay' field).
When first state has finished send it to state 2

State 2: Your GameObject Destory action

Hope it makes sense, there are more ways to achieve the same result. Im not an expert.

Nick