Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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? :)
-
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
-
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.