I'm currently using UE v5.4.1 and this tut still works for anyone wondering or using a newer version. Thanks for the clean and clear video, it's much appreciated!
Thank you so much ! Really smart with the "lights index" and with this configuration it's easy too include some "material change" if we use a mesh for the lights (like a cylinder for exemple). Thank a lot !
Love your Tutorials man! Great quality videos like this deserve more clicks, and making my TPS Steam game wouldn't have been possible without you! I'll be sure to credit you so these incredible videos can get more views from new UE4 creators like me!
Matt, what about a power source. Like they can turn on without power of some kind. Make a cube that makes power. and then attach a line or something to the structure and if the structure detect the power. Then the lights will come on when you click the switch.
Hi matt love your videos been using them for my gave for a while but can you do a tutorial where a player can shuffle in between small spaces like in the last of us and resident evil. thank you
Hello Matt, thanks for all of your free and very helpful tutorials here on RUclips! I love the way you explain all these things straight to the point. Could you by any chance do an inventory tutorial like CS-GO and Dead by Daylight? I kinda know how to make RPG-style inventory but it won't I think fit in my game. Thanks for all of your helps!
Hey so, the switches are sort of working okay but, I also have doors in my level and once open and then closed (and only from the opposite side they where opened from) I press my interact button (is interfaced) and all I get is my light-switch sound effect and the doors will no longer respond. If I don't leave the first room the switch with in it works perfectly well and the door opens but once I leave and ONLY if I close the door behind me...and never mind I figured it out as I was typing this nonsense. Collision boxes were overlapping each other. Hey thanks for yet another great tutorial!
Thank you for the perfect tutorial. That saved me loads of time. Can you make a video soon on how to combine the switch with a text massage? Tried it with excerpts from your door video, but that didn't work.
Hi Matt! I've been watching a lot of your videos to learn blueprints, I really appreciate you explaining what each node means and how the graph works. Could you do a video on turning a radio on and off? I have a radio static mesh that I want to play one audio track from, I just want to be able to toggle it on and off. Thanks!
Amazing vid as always! I've been watching some of your videos and thanks to that i could make a lot of progress in my project. This turning On/Off lights made me think, can you make a video about hide/unhiding meshes with a button... maybe with toggle invisible? I saw ur videos about making a push button and the other one about spawning, but that's not quite what i need.
I actually did this with what i learned from this vid. I have a normal "off" light fitting when the light switch is off, and that turns invisible and a "On" light fitting appears in its place as well as a box light that switches on when switch is triggered.Off has a glass material and on has a neon luminous material.
I have a question. Is the Gate Node in the LightSwitchBP not redundant? Since the Enable/Disable inputs on collision already controls the player input. Still new to this
how to add "material change" like when i press "E" not only the light shows up but including the emissive materials as well. Btw, great video! thank you so much
Great vid! Could you do a tutorial on shrinking animations? What I mean by this is, if I was to shrink my player character to 0.125 it's normal size, the animations become a bit choppy. Is there a way to then adjust the animations so that they run smooth with the new player characters size?
Problem. At the moment where I need to create a node (Target Light Index) "Get Light Index" I can’t create it. It’s just not in the list, I can’t and I don’t have it anywhere, I did everything according to the lesson. Possibly the problem is that I'm working in version 5.1. But then how can I write correctly so that the node appears. I'll be glad to help you guys
@@marciodasilva8797 try dragging out from the lights array when creating the for each loop oh yeah also make sure there is a Light index variable in the LIGHTS bp, because that's the variable you should be using, not the one in the lightswitch bp. and also check that it's compiled
@@RMC_ Thanks for the reply, i did exactly that, i was doing the "get all actors with interface" instead of "get all actors from class" and apparently you cant get variables off actors from interfaces that way in 5.3, which is pretty weird, it was possible on the 5.1 which i had previously, and yes those actors had the BPI on them aswell and the function was indeed getting them, i just couldnt extract the variables out for whatever reason haha
At 9:30 you add a 'for each loop' to add all the lights into an array, but can you not just connect the Lights Array straight to the array output on the 'get all actors' node?
very good tutorial, but it feels like im missing something. is it the same if i work in unreal 5.1 or have something changed? it feels like i followed everything 100% but still can get it to work😅 is there something thats easy to miss or has anything changed? (im very new to unreal an basically started last friday)
Hello matt can you make flip flop to anything because flip flop work only in (A) but (B) didn’t work in ue5 i hope you make video to explain that Thank you 😊
Hello again after a while i know what’s going on , i was using flip flop in function and function didn’t remember anything so i was need to do it in event graph so anyone was thinking like me and need to know what’s going on ,you need to do custom event and call that event in function hope that help you
Thank you so much, but how do you make the actual light look bright? The light is looking but when I look up it isn't bright at all: Edit: I had my light in the ceiling a little...
What If I had multiple different Light BPs that I wanted effected by one single light switch? How do I add the other BPs in the Get All Actors Of Class?
Thanks for this vid. This works perfectly in my level when using the box collision and e key trigger. However i would like to use the "look at interactable object" blueprint interface you did on some of your other door videos and turning the lights on and off by looking at the lightswitch and interacting with it. And that simply won't work. It's driving me crazy. It must be something silly i'm doing wrong, because the interact interface i have does work perfectly with opening and closing doors, but wont work with the light fitting.
so i'm trying to do this for a flashlight that i have in my hand and i don't want to walk into a box to turn my flashlight on and off, can i glue the box to the character model so i'm always in it??
@@TREEBXY if you want to turn on and off your flashlight, you can simply do it in your character BP using a flipflop. Why would you use a box collision?
The problem may be your input system, other than that it should all work the same. You can watch my video below on how to use the new enhanced input system. Hope it helps :) If this doesn’t fix it, feel free to send me a message on discord and I can help you further. ruclips.net/video/nXJuXUxQfa8/видео.html
I'm currently using UE v5.4.1 and this tut still works for anyone wondering or using a newer version. Thanks for the clean and clear video, it's much appreciated!
Thank you so much ! Really smart with the "lights index" and with this configuration it's easy too include some "material change" if we use a mesh for the lights (like a cylinder for exemple).
Thank a lot !
How would you go about changing the material? I'm using an emissive and it stays on even when the light is off. Any help woupd be greatly appreciated
That is awevose, thank you!
@Matt Aspland, I believe this was one of my requests! :D Thanks for showing this!
Amazing vid as always!
I've been watching some of your videos and thanks to that i could make a lot of progress in my project.
at 12:28 (get light index) it shows as "Actor Object Reference is not compatible with BP Light object Reference" and i cannot connect them
Yes! Do you know why?
@@Nillenice Did you found out why? :D
Love your Tutorials man! Great quality videos like this deserve more clicks, and making my TPS Steam game wouldn't have been possible without you! I'll be sure to credit you so these incredible videos can get more views from new UE4 creators like me!
Thank you! Your tutorials are great.
just what i needed
Glad to hear!
Excellent, thank you so much!
Matt, what about a power source. Like they can turn on without power of some kind. Make a cube that makes power. and then attach a line or something to the structure and if the structure detect the power. Then the lights will come on when you click the switch.
Great idea! I can add that onto my list!
@MattAspland did this ever happen?! i cant see it and your tutorials are the only ones i can seem to understand haha
Thanks !
Hi matt love your videos been using them for my gave for a while but can you do a tutorial where a player can shuffle in between small spaces like in the last of us and resident evil. thank you
nice video greetings from turkey
Thanks and welcome!
Hello Matt, thanks for all of your free and very helpful tutorials here on RUclips! I love the way you explain all these things straight to the point.
Could you by any chance do an inventory tutorial like CS-GO and Dead by Daylight? I kinda know how to make RPG-style inventory but it won't I think fit in my game.
Thanks for all of your helps!
Hey so,
the switches are sort of working okay but, I also have doors in my level and once open and then closed (and only from the opposite side they where opened from) I press my interact button (is interfaced) and all I get is my light-switch sound effect and the doors will no longer respond. If I don't leave the first room the switch with in it works perfectly well and the door opens but once I leave and ONLY if I close the door behind me...and never mind I figured it out as I was typing this nonsense. Collision boxes were overlapping each other.
Hey thanks for yet another great tutorial!
Thank you for the perfect tutorial. That saved me loads of time. Can you make a video soon on how to combine the switch with a text massage? Tried it with excerpts from your door video, but that didn't work.
Nice work dude 👍
Huge Likeeeeeeeeeeeeeee 👍😉
Much appreciated!
Hi Matt! I've been watching a lot of your videos to learn blueprints, I really appreciate you explaining what each node means and how the graph works. Could you do a video on turning a radio on and off? I have a radio static mesh that I want to play one audio track from, I just want to be able to toggle it on and off. Thanks!
Thanks my man
Happy to help!
Amazing thank you!!!
Amazing vid as always!
I've been watching some of your videos and thanks to that i could make a lot of progress in my project.
This turning On/Off lights made me think, can you make a video about hide/unhiding meshes with a button... maybe with toggle invisible?
I saw ur videos about making a push button and the other one about spawning, but that's not quite what i need.
I actually did this with what i learned from this vid. I have a normal "off" light fitting when the light switch is off, and that turns invisible and a "On" light fitting appears in its place as well as a box light that switches on when switch is triggered.Off has a glass material and on has a neon luminous material.
very tight code ty
I have a question. Is the Gate Node in the LightSwitchBP not redundant? Since the Enable/Disable inputs on collision already controls the player input. Still new to this
making my game EPIC!
how to add "material change" like when i press "E" not only the light shows up but including the emissive materials as well. Btw, great video! thank you so much
If you encounter same problem as me what I did in 6:20 Event toggle lights > Flip Flop > set .. if you have better solution just comment. thank you
Hello, is there any chance you would do a turret targeting and killing only AI? Would really help me. Like your vids. Pretty useful, keep it up
Cool idea, I can add it to my list :)
Great vid! Could you do a tutorial on shrinking animations? What I mean by this is, if I was to shrink my player character to 0.125 it's normal size, the animations become a bit choppy. Is there a way to then adjust the animations so that they run smooth with the new player characters size?
I haven't tried that before, but I can look into it
Is there a way to check whether all lights are on/off? I want the player to only be able to open a door if all the lights are actually turned off
Problem. At the moment where I need to create a node (Target Light Index) "Get Light Index" I can’t create it. It’s just not in the list, I can’t and I don’t have it anywhere, I did everything according to the lesson. Possibly the problem is that I'm working in version 5.1. But then how can I write correctly so that the node appears. I'll be glad to help you guys
Yeah got the same issue, did you end up finding the solution for this? Cheers!
@@marciodasilva8797 try dragging out from the lights array when creating the for each loop
oh yeah also make sure there is a Light index variable in the LIGHTS bp, because that's the variable you should be using, not the one in the lightswitch bp. and also check that it's compiled
@@RMC_ Thanks for the reply, i did exactly that, i was doing the "get all actors with interface" instead of "get all actors from class" and apparently you cant get variables off actors from interfaces that way in 5.3, which is pretty weird, it was possible on the 5.1 which i had previously, and yes those actors had the BPI on them aswell and the function was indeed getting them, i just couldnt extract the variables out for whatever reason haha
At 9:30 you add a 'for each loop' to add all the lights into an array, but can you not just connect the Lights Array straight to the array output on the 'get all actors' node?
very good tutorial, but it feels like im missing something. is it the same if i work in unreal 5.1 or have something changed? it feels like i followed everything 100% but still can get it to work😅 is there something thats easy to miss or has anything changed?
(im very new to unreal an basically started last friday)
im in 5 and i cant find -== integer
Hello matt can you make flip flop to anything because flip flop work only in (A) but (B) didn’t work in ue5 i hope you make video to explain that
Thank you 😊
Hello again after a while i know what’s going on , i was using flip flop in function and function didn’t remember anything so i was need to do it in event graph so anyone was thinking like me and need to know what’s going on ,you need to do custom event and call that event in function hope that help you
Thanks❤
Thank you so much, but how do you make the actual light look bright? The light is looking but when I look up it isn't bright at all:
Edit: I had my light in the ceiling a little...
Is there a way for a lightmap that has been built to change after you turn the light on or off
What If I had multiple different Light BPs that I wanted effected by one single light switch? How do I add the other BPs in the Get All Actors Of Class?
I should clarify. I mean say i had a room that had point lights and spot lights. How would i go about that?
Thanks for this vid. This works perfectly in my level when using the box collision and e key trigger. However i would like to use the "look at interactable object" blueprint interface you did on some of your other door videos and turning the lights on and off by looking at the lightswitch and interacting with it. And that simply won't work. It's driving me crazy. It must be something silly i'm doing wrong, because the interact interface i have does work perfectly with opening and closing doors, but wont work with the light fitting.
i'm in the same position, did you found a way to make it work ?
@@corentinambroise4777 i just removed the box collision. Used only the line detection method
thk !!
Nice
POGGGGG
so i'm trying to do this for a flashlight that i have in my hand and i don't want to walk into a box to turn my flashlight on and off, can i glue the box to the character model so i'm always in it??
What?
@@willkamechehe1496how does that not make sense
@@TREEBXY if you want to turn on and off your flashlight, you can simply do it in your character BP using a flipflop. Why would you use a box collision?
Mine won't turn on but they will turn off. I've tried every checkbox arrangement I can think of...
Key works only if lights on i can turn off,but if lights are off cant turn on!!
found it in light switch set node missed target connection :)
thank you this tut was just what I needed.
This doesnt seem to work in UE 5.1. Or am I just missing something?
The problem may be your input system, other than that it should all work the same. You can watch my video below on how to use the new enhanced input system. Hope it helps :)
If this doesn’t fix it, feel free to send me a message on discord and I can help you further.
ruclips.net/video/nXJuXUxQfa8/видео.html
I like how when the videos are uploaded it happens around 18 hundred hours
Yep, I always upload at 18:00 GMT
Anyone else having issues when duplicating light fixtures?
Last:(
make a minecraft video
just keep them in a single actor lol. why create index this and that. lol
What?
dont bullshit me @@willkamechehe1496
Are you using lumen? I have this problem when I turn off the light its fading out slowly instead of instant.