Smart Lamp Blueprint

So i was playing with the Blueprint system. I decided to make a “smart lamp”. Like the tutorial i saw on Youtube i have already done the turning the lights on and off with inputs from keyboard. It’s work fine. (Trigger box over lap begin - end with enable inputs & disable inputs stuff…etc)

Then i decided to have fun a bit. The idea is when you enter the trigger volume ( I named it ColorTriggerBox in the graph) the system will check if the light is on or not. If it is on, then when you hit a given key, it will change to a random color. If it’s not visible, then a Warning Message will appear and say you need to turn the lights on in order to change it color. Here is a picture of my graph network.

But the problem is, when i try it for real, the turning light on and off functions is unable to run. And it skip the X key press event and show the warning message imediately. That is what happen when i set the Visible Option of the Light component is uncheck. When that option is checked. Then it turn the light color random every time i enter the trigger volume and it still skip the key press event. I’m kinda new to this stuff and i don’t know what was wrong with my graph. I hope this picture here can help you to point out my mistakes.

Thanks a lot.

Hey there,

your big “BeginOverlap” Node fires the branch as soon as you enter it. It isn’t “skipping” the X Key. Both of them are able to fire the branch node, because you plugged both into it.

What you really want to do is, only let the BeginOverlap fire the branch and cut off the “Set Light Color” node.
Now you copy the branch + “Spot Light Source” and “isVisible” and use the copied version for the X Key. So that you have the branch with the Visibility check 2 times, one time with the BeginOverlap and one time with the X Key.

The BeginOverlap will only use the “False” output of the Branch node and set the visibility of the Warning message and the X Key branch, will only use the “True” output of his own Branch and use it to change the light color.

The basic problem here is, that you are using the Key and the Overlap both for the same thing and both react like one, because the overlap will just change the lightcolor if the branch is true. So that’s why you split it up like i told you above. I assume you have the “Enble Input” thing somewhere else set, because you will still need to enable and disable input to make the X Key work at all. Also remember to Set the Visibility of the Message back to FALSE (no check mark) when you “EndOverlap”.

If you need more help, just tell me (:

Yes for sure, here you go:

http://puu.sh/dhSJh/72b7017e59.jpg

http://puu.sh/dhSJW/6753712839.png

http://puu.sh/dhSKt/a02cddcb54.png

This should work. Can’t test it right now, so just tell me if something is not working (and tell what exactly is not working please :D).

Can you upload a picture please xD. Thanks a lot.