How to Script Sliding Doors in Halo Infinite's Forge

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 77

  • @Tabsplayer8887
    @Tabsplayer8887 2 місяці тому +1

    This script also helped me out with an example of a moving object and pretend it is like a train

  • @ProwoodStuff
    @ProwoodStuff 2 роки тому +15

    I like I got psyched about the door opening, haven’t experimented with visual nodes all that much so I’m still doing stuff I didn’t know I could do lol.
    Thanks

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      Making something as simple as opening/closing doors is such a cool experience. I’m glad you’re having as much fun as I am!

  • @palebrow1673
    @palebrow1673 2 роки тому +24

    You should make a video on how to open and close a door just by walking next to it yet to see someone do that

    • @milkyway7216
      @milkyway7216  2 роки тому +5

      Sure! Made a short that showed off the door mechanism. All I did was replace the switch nodes with volumes’ and include ‘Area Monitor’ and ‘On Object Enter Area’ nodes. Let me know if you have any questions! ua-cam.com/users/shorts3rq5ULJ3YYI?feature=share

    • @palebrow1673
      @palebrow1673 2 роки тому +2

      @@milkyway7216 watched it! Can it open without shooting or throwing?

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      @Pale Brow The door can open up with just yourself 👍
      If you’re talking about omitting those factors, I don’t think you can prevent them from activating the ‘On Object Enter Area’ node. I’d be happy to be proven wrong though!

    • @palebrow1673
      @palebrow1673 2 роки тому +1

      @@milkyway7216 ok I’ll try “on area” again thanks

    • @chrisrichfield8906
      @chrisrichfield8906 Рік тому

      i cant for the life of me get this to work. i have the object reference, the area monitor, the on object entered area. It wont do anything@@milkyway7216

  • @JasonHennessy-s2c
    @JasonHennessy-s2c 2 місяці тому +1

    I got mine to work, the second branch that is connected to the down side needs to be set to if false, not if true, then it works. In the video this value is set to if true.

  • @dominikschachner7208
    @dominikschachner7208 Рік тому +1

    How can i make the button working just for one time? I can push the door to heaven 😅 ...or a switch to close it again

  • @blakezegarelli5800
    @blakezegarelli5800 Рік тому +2

    So I did this and it worked which is awesome. But I believe it is only half of the scripting. You need to bring the door down as well. I think it would need another script to bring it down and then create some type of loop so it keep going back between the two options

    • @snakegun4479
      @snakegun4479 Рік тому +1

      Pengiplayz (at least that’s how I think it’s spelled) showed how to do that

  • @Sharkaiju
    @Sharkaiju Рік тому +2

    This no longer works as setting the "get vector axis value" no longer connects to the "set object position" as it has new settings. Or maybe I'm dumb

    • @milkyway7216
      @milkyway7216  Рік тому +1

      You probably already figured this out but it's the "get object position" node.

  • @milkyway7216
    @milkyway7216  2 роки тому +7

    Hey everyone! I just released a new video that revisits this topic, however, introduces new concepts and functionality (open/close). Check it out if you have the chance :) Advanced Sliding Door Script in Halo Infinite Forge
    ua-cam.com/video/8CkJ9X1wRXA/v-deo.html

    • @MementoTurtle
      @MementoTurtle 2 роки тому

      Please make a video on this one
      It looks like spaghetti code, it's hard for me to tell what is going on

  • @eproductions8792
    @eproductions8792 Рік тому +2

    Mine looks exactly like yours. Why isn’t this working? 🌚

  • @quantumaquatic1767
    @quantumaquatic1767 2 роки тому +1

    Want to see a door open when somone walks In the zone

  • @Mistyf1
    @Mistyf1 2 роки тому +8

    I swear in H5 I could script anything, I scripted intricate doors opening and a hole in one that spawns in a bunch of cans, but I have no clue on how to script in halo infinite

  • @diigitalapex1127
    @diigitalapex1127 9 місяців тому

    Thanks!!!!

  • @cplrichmond
    @cplrichmond Рік тому

    Followed this video in my scripting. How does the door close?

  • @lolsword7
    @lolsword7 2 роки тому +2

    Have you ever experienced issues where no the switch is not able to be interacted with?
    I don't see any prompt when I stand next to it.
    Could it be due to going over budget?

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      Not sure if you’ve already solved it but I would delete the object and try again. Sometimes I’d get weird errors for things that have worked originally, with the solution being to replace it. Sorry for the late reply!

    • @lolsword7
      @lolsword7 2 роки тому +2

      @@milkyway7216 All good!
      From memory, I was entering 'play mode' instead of 'test-mode' or vice-versa.

  • @MasterChiefSpartan117
    @MasterChiefSpartan117 2 місяці тому

    So what about the door closing?

  • @shreddermcgenty
    @shreddermcgenty 2 роки тому +5

    Thank you I was missing the vector axis value lol I'm making one that opens 4 doors for an air lock.Itll be called the event horizon you should look it up soon!I'll be putting it on file share once its finished.

    • @milkyway7216
      @milkyway7216  2 роки тому +2

      Can’t wait to see it! Glad I managed to help out :)

  • @JohnyJumpStreet
    @JohnyJumpStreet 2 роки тому +5

    Is there a way to make the door go back down for the players? If they keep pressing the button the door continues to keep going up into the map. Love your tutorial btw!

    • @milkyway7216
      @milkyway7216  2 роки тому +2

      Thank you for your support, it means a lot!
      To answer your question, one way to solve it is by having another scriptable switch that subtracts the door’s z-value and connecting it on another ‘Translate Object to Point’ node. Then all you need to worry about is connecting all nodes together.
      As for preventing people from spamming the button and having your door from going up 200 feet, I’ll have to get back to you on that. Not 100% sure, but I believe you can use the ‘Branch’ node to make sure it doesn’t travel farther than you want it to be. I’ll test things out tonight and update you!

    • @milkyway7216
      @milkyway7216  2 роки тому

      Just improved upon the script to add open/close functionality on 2 switches. It was a lot of fun to experiment around and try out new things! Here’s the link to see both the graph and a demonstration: imgur.com/gallery/k4jxvQC

    • @JohnyJumpStreet
      @JohnyJumpStreet 2 роки тому +1

      @@milkyway7216 Awesome I will check it out! I am not sure if imgur got it uploaded or not. Getting a 404 error for the picture.

    • @milkyway7216
      @milkyway7216  2 роки тому

      @@JohnyJumpStreet Updated it! It should work now.

    • @justicebratcher
      @justicebratcher 2 роки тому +1

      @@milkyway7216 Can you make this a prefab or would that not work?

  • @francisbawasanta6310
    @francisbawasanta6310 2 роки тому +1

    How would you script a rotating map? I have this idea for a space vessel that's lost "gravity" so it's sort of slowly spinning / rotating in space... conceptually the "map" is dynamic. Floors end up ceilings, up is down etc... Like it's lost power and it's in orbit. Is that doable?

    • @merezko4339
      @merezko4339 2 роки тому +2

      I feel the simplest way, is to increment the Rotation of a prefab every “tick”/ few seconds.
      Not sure if a prefab as a whole can be rotated, concepting this by have a huge Primitive Ring and have the objects inside slowly rotate and move around the inner edge using manually taken key frames

    • @milkyway7216
      @milkyway7216  2 роки тому +2

      As it stands right now, scripting a rotating map looks to be really complicated. I made a small room prefab to test and see if it was possible but it only rotates the parent object (1 wall). No matter what I did to the object properties it didn’t seem to work at all.
      That being said, maybe I missed or didn’t account for something. The forums I came upon said that it could be a bug, as it worked in Halo 5’s forge. Here’s hoping 343i fixes it somewhat soon 🤞

  • @WaterBoy21
    @WaterBoy21 Рік тому

    Is there a way for the door to go back to its original position after it’s been opened. So for example, it goes up for 3 seconds, waits/stops for like 3-4 seconds, and then finally goes back down to its original position.

  • @TheBlazingBean
    @TheBlazingBean Рік тому +1

    Great
    Now how do I close it

  • @thatstudentnamedleo3569
    @thatstudentnamedleo3569 2 роки тому

    Is there no way to toggle it? I hate to have two switch dedicated to close it aswell

  • @dev_vg
    @dev_vg 2 роки тому +1

    Can doors be opened by shooting at them like in quake 3? Also be activated from player proximity, those quake doors open pretty quick

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      Yup! I posted a short regarding player proximity here: ua-cam.com/users/shorts3rq5ULJ3YYI?feature=share
      As for activating doors via shooting at them, I used the ‘On Object Damaged’ node as my input. Here’s the demonstration + node graph here: imgur.com/gallery/n1RU1nb

  • @MasterChiefSpartan117
    @MasterChiefSpartan117 2 місяці тому

    Whats Q for Xbox?? We dont have PC!

  • @sibeers
    @sibeers 2 роки тому +1

    Great tutorial! Any idea on how to make the door come back to it's original position automatically after a few seconds? Thanks!

    • @milkyway7216
      @milkyway7216  2 роки тому +2

      Apologies with the late response, I was busy stressing about finals. To answer your question, you can include a ‘wait for n seconds’ node after opening it, then subtract the door’s z-value by the same amount you used to open it. Hope this helps!

    • @JimjamtheDaftone
      @JimjamtheDaftone Рік тому +1

      ​@@milkyway7216ey up ive tried this but it doesnt work for me

  • @musicuser9967
    @musicuser9967 Рік тому

    Hey thx for the video you got my sub. Would you be able to make a shield door like in previous halos?
    Im halo 5 i got their basic old shield door object, then set an intractable button that had one script to cause damage to the shield door making it break, then the shield door relied on its respawn timer to appear again.
    With halo infinite lacking shield doors, this simple system i had is now entirely more complicated, having me create a shield door using fx and blockers, then scripting its despawn and spawn. For some reason i can not get it working for the life of me

  • @pkgyoutube3796
    @pkgyoutube3796 Рік тому

    hey guys i am still confused about how to script doors i find halo 5 eiser. can anyone help me?

  • @World36599
    @World36599 3 місяці тому

    I've done everything the same and its not working

  • @CNL117711
    @CNL117711 2 роки тому +1

    I've done everything correct. My door just floats away when touched. Halp

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      There’s 2 door options in your objects browser, mp and non-mp. Make sure you choose mp.

    • @CNL117711
      @CNL117711 2 роки тому

      @@milkyway7216 oh thank you

    • @CNL117711
      @CNL117711 2 роки тому

      Still couldn't get it, but I was able to make breakable objects (which was objectively harder)
      Idk wtf is going wrong

  • @KyleStenen
    @KyleStenen 2 роки тому +1

    My door keeps bugging out than it disappears!

    • @milkyway7216
      @milkyway7216  2 роки тому

      Check your door’s (make sure it’s the MP version) object properties and ensure that it’s set as phased.

    • @KyleStenen
      @KyleStenen 2 роки тому +1

      @@milkyway7216 Ohhh yea it's not mp

    • @KyleStenen
      @KyleStenen 2 роки тому

      @@milkyway7216 Do you think i can I have 2 buttons connected to one door?

    • @KyleStenen
      @KyleStenen 2 роки тому

      Now my door wont open.

    • @milkyway7216
      @milkyway7216  2 роки тому

      @@KyleStenen Do you mind showing me your script on Twitter? My @ is ReallyMilkkyWay

  • @AriMyles93
    @AriMyles93 7 місяців тому

    I tried this. Mine is exactly like yours. Does not work.

  • @virtualbison6928
    @virtualbison6928 3 місяці тому +1

    This doesnt work.

  • @isandro7IV
    @isandro7IV 2 роки тому

    did u make it a prefab yet?

  • @TaskForceHorse
    @TaskForceHorse 2 роки тому

    Didn't work?

  • @MysteriousPotatoe
    @MysteriousPotatoe Рік тому

    It did not work for me

  • @wolfgang6469
    @wolfgang6469 2 роки тому +1

    “Sciptable” lol

  • @sadisticxdemon117
    @sadisticxdemon117 2 роки тому

    Man it keeps failing

    • @milkyway7216
      @milkyway7216  2 роки тому +1

      What’s wrong with it? Is it not opening or is it just not working at all?

    • @sadisticxdemon117
      @sadisticxdemon117 2 роки тому +1

      @@milkyway7216 it wont work at all. The node keeps failing to build

    • @World36599
      @World36599 3 місяці тому

      ​@@sadisticxdemon117 I have this same problem

  • @MasterChiefSpartan117
    @MasterChiefSpartan117 2 місяці тому

    We cant right click! We're on Xbox!

  • @D1wh0kn0cks
    @D1wh0kn0cks Рік тому +1

    It don’t work for me