Im currently using a Box Trigger to Toggle Visibility of a Spotlight although if the character walks over the Trigger again it will Toggle off… What do I use to Toggle visibility to On and stay on?
Cheers
Unreal Engine 3 triggers had an option to limit the number of times a trigger is triggered. Have you checked if UE4 has that?
Anyway a better solution will be to use SetVisibility node instead of Toggle
Iv just started using UE4 today and have been looking around for a tute on SetVisibility but can not find one and have not worked it out yet.
I also haven’t found a way of limiting the amount of times a trigger is triggered
Found a better solution:
Keep your current event graph as is. just add this modification.
Before calling ‘Toggle Visibility’, add a branch and put ‘Is Visible’ node into the the condition connector. Plug a reference to Light into the ‘Target’ connector of ‘Is Visible’. Then connect ‘False’ connector into the ‘Toggle Visibility’ node.
The advantage here is, if your light somehow got turned-off by some other event, when the player again comes into the trigger area, it will turn ON again. IF you destroy the trigger volume, this wont happen
Ahh nice! ill give that a test now. Might not be the best way to do it with my scene cause im turning on about 60 lights with a delay between them although I assume this would still work for the whole set of lights.
You could simply set a destroy actor node and reference the trigger box after its been overlapped once. The light should stay on or off.
Use branch and boolen variable, lets name that variable as bIsTrigerred . Connect bIsTriggered to branch. TRUE node from branch connect to nodes you used to turn light on. Dont connect false to anything. When you trigger set bIsTriggered to be TRUE. No matter how much you trigger that trigger it will be allways TRUE and light will allways stays on.
OR use “DoOnce” node.
http://s1.postimg.org/q71tvre2n/Screen_Shot_2014_05_29_at_10_56_46.png << both solutions in blueprint. Either use one solution or other dont use both.