How To Turn On And Off Lights | Single Light And A Room Of Lights - Unreal Engine Tutorial

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 84

  • @EasysInsanity
    @EasysInsanity 4 месяца назад +1

    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!

  • @tonymurgia8614
    @tonymurgia8614 Год назад +1

    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 !

    • @chuckymerchant236
      @chuckymerchant236 3 месяца назад

      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

  • @kartoplia
    @kartoplia Месяц назад

    That is awevose, thank you!

  • @ThirstyThursten
    @ThirstyThursten 2 года назад +1

    @Matt Aspland, I believe this was one of my requests! :D Thanks for showing this!

  • @adamjensen253
    @adamjensen253 2 года назад

    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.

  • @ItsCooperTho
    @ItsCooperTho 2 года назад +6

    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

  • @imspencer06
    @imspencer06 2 года назад

    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!

  • @ninithan9024
    @ninithan9024 Год назад

    Thank you! Your tutorials are great.

  • @stig6339
    @stig6339 2 года назад +1

    just what i needed

  • @alejandrorodriguez5254
    @alejandrorodriguez5254 Год назад

    Excellent, thank you so much!

  • @iceman11a
    @iceman11a 2 года назад +4

    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.

    • @MattAspland
      @MattAspland  2 года назад

      Great idea! I can add that onto my list!

    • @rhys8379
      @rhys8379 Год назад

      @MattAspland did this ever happen?! i cant see it and your tutorials are the only ones i can seem to understand haha

  • @ECHSBACHS
    @ECHSBACHS Год назад +1

    Thanks !

  • @maxsworldofgames8729
    @maxsworldofgames8729 2 года назад +2

    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

  • @thevengeance9999
    @thevengeance9999 2 года назад +2

    nice video greetings from turkey

  • @vincentm7847
    @vincentm7847 2 года назад

    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!

  • @pseudonym108
    @pseudonym108 8 месяцев назад

    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!

  • @endricgollenbusch4106
    @endricgollenbusch4106 2 года назад

    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.

  • @G4AGamingForAll
    @G4AGamingForAll 2 года назад +1

    Nice work dude 👍
    Huge Likeeeeeeeeeeeeeee 👍😉

  • @koolkat0002
    @koolkat0002 2 года назад

    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!

  • @localfriendlycloud7720
    @localfriendlycloud7720 2 года назад +1

    Thanks my man

  • @SilklessSound
    @SilklessSound Год назад

    Amazing thank you!!!

  • @henrylanchang2017
    @henrylanchang2017 2 года назад

    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.

    • @budpeetie6879
      @budpeetie6879 2 года назад

      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.

  • @3DChaddd
    @3DChaddd Год назад

    very tight code ty

  • @CRV3N
    @CRV3N 3 месяца назад

    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

  • @r_e_d_squirrel367
    @r_e_d_squirrel367 2 года назад

    making my game EPIC!

  • @zachchio413
    @zachchio413 9 месяцев назад

    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

    • @zachchio413
      @zachchio413 9 месяцев назад

      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

  • @cavallorobin
    @cavallorobin 2 года назад +2

    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

    • @MattAspland
      @MattAspland  2 года назад

      Cool idea, I can add it to my list :)

  • @CommanderColson
    @CommanderColson 2 года назад +1

    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?

    • @MattAspland
      @MattAspland  2 года назад +3

      I haven't tried that before, but I can look into it

  • @5qsgreatchannel
    @5qsgreatchannel Год назад +1

    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

  • @uselesspsd
    @uselesspsd Год назад +2

    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
      @marciodasilva8797 Год назад

      Yeah got the same issue, did you end up finding the solution for this? Cheers!

    • @RMC_
      @RMC_ Год назад

      @@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

    • @marciodasilva8797
      @marciodasilva8797 Год назад

      @@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

  • @RMC_
    @RMC_ Год назад

    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?

  • @robban-shinplays2612
    @robban-shinplays2612 Год назад

    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)

  • @kingdoom1906
    @kingdoom1906 2 года назад +1

    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 😊

    • @kingdoom1906
      @kingdoom1906 2 года назад

      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

  • @mustefa2193
    @mustefa2193 Год назад

    Thanks❤

  • @allarkvarkk8987
    @allarkvarkk8987 Год назад

    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...

  • @thatdudepeter
    @thatdudepeter 2 года назад

    Is there a way for a lightmap that has been built to change after you turn the light on or off

  • @OiItsPhantom
    @OiItsPhantom Год назад

    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?

    • @OiItsPhantom
      @OiItsPhantom Год назад

      I should clarify. I mean say i had a room that had point lights and spot lights. How would i go about that?

  • @budpeetie6879
    @budpeetie6879 2 года назад

    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.

    • @corentinambroise4777
      @corentinambroise4777 Год назад

      i'm in the same position, did you found a way to make it work ?

    • @budpeetie6879
      @budpeetie6879 Год назад

      @@corentinambroise4777 i just removed the box collision. Used only the line detection method

  • @Kwn18z
    @Kwn18z Год назад

    thk !!

  • @imohsalah
    @imohsalah 2 года назад

    Nice

  • @shengalabu8050
    @shengalabu8050 2 года назад +1

    POGGGGG

  • @TREEBXY
    @TREEBXY Год назад

    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??

    • @willkamechehe1496
      @willkamechehe1496 10 месяцев назад

      What?

    • @TREEBXY
      @TREEBXY 10 месяцев назад

      ​@@willkamechehe1496how does that not make sense

    • @willkamechehe1496
      @willkamechehe1496 10 месяцев назад

      @@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?

  • @Joel-bg3cf
    @Joel-bg3cf 2 года назад

    Mine won't turn on but they will turn off. I've tried every checkbox arrangement I can think of...

  • @paladin995893
    @paladin995893 Месяц назад

    Key works only if lights on i can turn off,but if lights are off cant turn on!!

    • @paladin995893
      @paladin995893 Месяц назад

      found it in light switch set node missed target connection :)
      thank you this tut was just what I needed.

  • @Nillenice
    @Nillenice Год назад

    This doesnt seem to work in UE 5.1. Or am I just missing something?

    • @MattAspland
      @MattAspland  Год назад

      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

  • @MartKart8
    @MartKart8 2 года назад +1

    I like how when the videos are uploaded it happens around 18 hundred hours

    • @MattAspland
      @MattAspland  2 года назад

      Yep, I always upload at 18:00 GMT

  • @christophercover5212
    @christophercover5212 9 месяцев назад

    Anyone else having issues when duplicating light fixtures?

  • @tigasm6544
    @tigasm6544 2 года назад +1

    Last:(

  • @Testtt12312
    @Testtt12312 2 года назад +2

    make a minecraft video

  • @22hoursago
    @22hoursago Год назад

    just keep them in a single actor lol. why create index this and that. lol

  • @vichax
    @vichax Год назад

  • @arttest0156
    @arttest0156 9 месяцев назад

    Are you using lumen? I have this problem when I turn off the light its fading out slowly instead of instant.