Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kici on March 10, 2014, 11:21:24 AM

Title: GameObject Destroy Self
Post by: kici on March 10, 2014, 11: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
Title: Re: GameObject Destroy Self
Post by: coxy17 on March 10, 2014, 11: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