Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Evaldas on April 16, 2021, 05:57:41 PM

Title: Trigger Event Exit not working after object disabled
Post by: Evaldas on April 16, 2021, 05:57:41 PM
Hello! I'm having this interesting situation - Trigger event on regular enter and exit is working just fine, but if Game Object get's deactivated while in the trigger, the trigger exit event doesn't get called.

Maybe somebody knows how to approach this? :)
Title: Re: Trigger Event Exit not working after object disabled
Post by: djaydino on April 17, 2021, 04:01:14 PM
Hi.
I have encountered this issue a well.

I my case i have a separate collider which never gets disabled.

when our player rolls he cant get hit and i disable his body trigger, which caused the issue.

Its a unity 'flaw'

You could for example do a Trigger Event 'Stay' and on hit do a short delay then go back and do trigger event again.

or for example use box cast
Title: Re: Trigger Event Exit not working after object disabled
Post by: Alex Chouls on April 18, 2021, 11:39:26 AM
Depending on your setup, you could use the DISABLE system event, sent when a GameObject is disabled. For example, if you want to do the same thing on Trigger Exit or GameObject disabled.