How to Switch a Light On and Off with a Button in Unreal Engine 5

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

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

  • @malikjohnson8450
    @malikjohnson8450 7 месяцев назад +7

    If you want to add multiple spotlights to the button add a new variable and make it editable like the first one you use add two sequence nodes after the branch, one for true and one for false and re-use the same code for the second spotlight. You can just keep adding more

    • @vanish45
      @vanish45 Месяц назад +1

      Can you explain it to me like I’m 5?

    • @LukeThrash1
      @LukeThrash1 Месяц назад +2

      @@vanish45 Hi, so since I also had quite a bit of trouble understanding what it meant exactly, let me explain it to you again in simpler terms:
      First, duplicate the light component and name the two components Light_01 and Light_02.
      Now, after the branch, attach to the "True" output a node called "Sequence" (this type of node allows you to activate multiple actions from a single input).
      Branch, Output True - Sequence
      From the Output "0", add a Print String: "On_01" - IsLightOn (checked) - Set Intensity (use Light_01 as the target) with New Intensity = 10 (for example).
      From the Output "1", add a Print String: "On_02" - IsLightOn (checked) - Set Intensity (use Light_02 as the target) with New Intensity = 5 (for example).
      Now from the branch, but at the False output, attach another Sequence:
      From the Output "0", add a Print String: "Off_01" - IsLightOn (unchecked) - Set Intensity (use Light_01 as the target) with New Intensity = 0.
      From the Output "1", add a Print String: "Off_02" - IsLightOn (unchecked) - Set Intensity (use Light_02 as the target) with New Intensity = 0.
      I hope this was helpful enough. It's not easy to explain such a complex node.
      TIP: With this node, the great thing is that you can adjust the intensity of each light independently like I just show you with the values 10 and 5!

  • @princeveznan
    @princeveznan 22 часа назад

    thanx bro , i finally understand how to attach variables between actors

  • @suryakamalnd9888
    @suryakamalnd9888 10 месяцев назад +7

    It's great dude! 👏👏

  • @albincbabu7151
    @albincbabu7151 10 месяцев назад +6

    Hi gorka can you make a disintegration niagra death effect to an Enemy AI ?

  • @nimaxf.n
    @nimaxf.n 10 месяцев назад +3

    Hola bro, buen tutorial como siempre! Pero yo recomendaria usar el line trace que es mas preciso que un trigger.

  • @DARK-WORLD45
    @DARK-WORLD45 10 месяцев назад +2

    Great video sir 👏

  • @ahmedosman7515
    @ahmedosman7515 2 месяца назад

    i love you man . please keep going -- this is the best tutorial i have ever see it ..thank you very very very much * * *

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

    I love your video man. Just bought your stealth course and others too!

  • @SadiqAuwaluSani-ds7lb
    @SadiqAuwaluSani-ds7lb 10 месяцев назад +2

    Next make a video on how to add updates and easter eggs

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

    thank u so much
    that was so simple and really helpful , i which i had enough money to buy ur course 😊

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

    thank you so much ❤

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

    Good job bro 👍

  • @KANAWA2025
    @KANAWA2025 6 месяцев назад

    all work fine ! thank you!

  • @pocketblaze5913
    @pocketblaze5913 10 месяцев назад +1

    bro how did you make flying animal ai in ur ark series???

  • @arcadejedidp
    @arcadejedidp 8 месяцев назад +1

    Hello, following the tutorial and I cannot get the "pick actor" in my BP_Light to ref my spotlight. Is there something I'm missing?

    • @Fokkingdrasl
      @Fokkingdrasl 2 месяца назад +1

      When you made the ''Light'' Variable you have to choose 'Spot Light' and not 'Spot Light Component'. Hope this helps

  • @salem6505
    @salem6505 10 месяцев назад +1

    Could you please teach us how to build an electrical system? For example, if you press a button, the electricity will be cut off from a device and it will stop working, and you can turn it on again. Thank you, dear.

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

    Hello, thank you very much for the video, I have a question, how can I make the light bulb turn on automatically after 5 seconds?

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

    Great video! Just one question as a beginner, would it not be better with flip-flop node instead of boolean ? What are the benefits of the boolean ?

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

    Cool stuff! Worked like a charm. Is there a way to reference multiple lights at once with one switch?

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

    Hey Gorka... please... consider doing tutorials with Hand IK based animated interactions. I know it's more complicate and videos might take longer but we need them big time!!!
    PS: If you make the ultimate video on making a definitive Foot/Leg IK adaption on slopes and irregular surfaces that finally works would be even better for us all...

  • @antcla
    @antcla 7 месяцев назад

    thx

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

    Hello. you have very good content. can you show me how to make a control for a bird?

  • @SadiqAuwaluSani-ds7lb
    @SadiqAuwaluSani-ds7lb 10 месяцев назад +1

    Hi gorka do you do ue4 tutorials as well

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

    Gorka could you do a battle royale tutorial series

  • @JimyRoze
    @JimyRoze 12 дней назад

    hey look at that it works.

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

    8:04

  • @throughthecorner9542
    @throughthecorner9542 10 дней назад

    Hey Gorka You help me so much by your videos! i kinda get how the blueprints work now. i have something in my mind and i can not do it on my own yet. this system here i used for my light switch oke made some nice moving buttons with click sound i can do that. bud let say the button you made here in this video is the main power button off the map like the powerplant. controlles everything. bud i want a switch inside a house that works seperatly bud when power is off stay off. is this possible or is this just to real life bulls***:P i got i work with 2 seperate buttons now. one to put power on and only on the other button to turn it down and only down. just umhook some .bud i dont know how to get a main power and a house power idea out off it. it may be a good video? i hope you read this couse you make gta in 4 hours:P peacee

  • @TopG641
    @TopG641 6 месяцев назад

    My light doesnt turn on :(

  • @Lucario_ae
    @Lucario_ae 6 дней назад

    Don't work