playMaker

Author Topic: Problem with trigger [SOLVED]  (Read 1214 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 553
Problem with trigger [SOLVED]
« on: August 23, 2023, 04:48:05 AM »
I am using a trigger object to check if ANY object in the map gets in between the camera and the player.
So I have a trigger ENTER that sets up the player with an outline shader, and a trigger EXIT that removes the outline shader.
So far so good... but!
If the trigger gets activated by more than one object, like in example 3, and then it exits by any of these objects, the trigger EXIT is fired, but in fact the trigger object is still active, and the camera still can't see the player!
I couldn't come up with a solution in this case.

I tried to use trigger STAY but with little success.

P.S.: I know that a raycast would be better blabla but I'm lazy ok?  ;D
« Last Edit: August 23, 2023, 04:51:19 AM by PolyMad »

PolyMad

  • Hero Member
  • *****
  • Posts: 553
Re: Problem with trigger (SOLVED)
« Reply #1 on: August 23, 2023, 04:50:55 AM »
Found the solution.
Not using trigger ENTER, but only trigger STAY seems working correctly.