Hi,
I’ve got an event that fires only when 2 conditions occur : the player looks at an object, and the trigger attached to this object is triggered.
It works fine each time the player enters the trigger WHILE looking at the object. However if the player looks around while triggering, and THEN looks at the object, nothing appears.
I’d to make the trigger work as a switch, and not as a ponctual event.
From what you said, you ned to trigger it almost once, and as long as the player around and moving the came, don’t keep triggering it every time the line hit the object.
In that note:
Make a bigger trigger around the object and call it Area trigger or so
Make a bool, that is “false” by default.
Once the player enter the big trigger nothing happens
If the player eye line hit the object while being in the Area trigger & the bool is False, then set the bool to “True” and do whatever sequence you want
Now the player will never activate that thing again
Once the player exit the Area trigger, set the bool to “False” again
Hi, thanks for the answer.
It’s not exactly what I meant :
I’ve got a box that grows up as the player approach AND look at it. If the player stays in the near from the box (in the trigger volume), and looks somewhere else, the box shrinks off. If the player (always in the trigger) looks again at the box, it’ll grow up again.
Also in my example, if the player enters the trigger volume without looking at the objects and look at it once the tigger is activated, the box won’t grow up… And I want it to grow !
I’ll try with your idea though, but I think it’s not what I need…
Hi Teapot Creation.
Are you still having this issue? I am having a similar issue.
The blueprint you have will only fire the MOMENT you are ENTERING the trigger. Not WHILE you are IN the trigger.
As mamoniem is saying. You can make yourself a “isInVolume”-bool that is true when entering and false when exiting.
And Then you can use an EVENT TICK to fire a branch that checks whether isInVolume is true and subsequently fire off your timeline.
The way you currently have it, the script will only trigger the frame you enter the volume and then stop.
If anyone else sees this post, question,
Is there a way to make yourself an event for WHILE you are in a volume, not relying on EVENT TICK?