playMaker

Author Topic: Trigger Event By tag doesn't work  (Read 1498 times)

jessidion

  • Playmaker Newbie
  • *
  • Posts: 6
Trigger Event By tag doesn't work
« on: December 23, 2021, 11:21:44 AM »
I checked so many tutorials, it's not like it's complicated, make sure the object has the required tag and that no child object get picked up also, there's no reason for it but my trigger is triggering when touching ANYTHING. No matter what tag it is. My player should die only when collided with the tag "monsters", but if the player touches ANY FREAKING COLLIDER that's set to trigger in the hole game it will trigger and my player dies.

After checking 1000000 times that I set everything perfectly and that no child object has a different tag (which shouldn't even matter since the trigger should only pick up "player" tag) I'm starting to believe that it's just broken on my end.

I feel like this malpraktice guy has my issue: https://hutonggames.com/playmakerforum/index.php?topic=22209.0

But I can't figure out what exactly he did to workaround the tag not working at all

Just a quick update in case anyone else gets stuck like me - I was able to get things to work but it had nothing to do with the Trigger Event action in Playmaker.

I'd still like to know if we're supposed to be able to control what can set off those trigger events with Tags as that's what it looked like originally. As of right now, that Collider Tag does nothing for me still so I still wonder if that feature doesn't work?

But I ultimately solved this by creating a new Layer in Unity and adjusting the Physics Matrix under Project Settings so that the layer I gave the original "radar" was only able to interact with an object I labelled and added to the bumper of my Player. Playmaker still handles the trigger itself, but the collision recognition seems to all happen via Unity this way now.

Thanks!
« Last Edit: December 23, 2021, 11:36:58 AM by jessidion »

jessidion

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Trigger Event By tag doesn't work
« Reply #1 on: December 23, 2021, 11:51:00 AM »
"But I ultimately solved this by creating a new Layer in Unity and adjusting the Physics Matrix under Project Settings so that the layer I gave the original "radar" was only able to interact with an object I labelled and added to the bumper of my Player. Playmaker still handles the trigger itself, but the collision recognition seems to all happen via Unity this way now." -Malpraktice

I "fixed" it (only a workaround sadly) by doing similar to what he did which is, create a new layer called "SafeObject", and under physics/project settings at the bottom untick ALL the layers so now the trigger cannot see it at all and my player doesn't die when touching that object. This requires me to add that tag to almost all colliders in my scene or the player can't touch anything.