How to Script Player Health in Horizon Worlds | Tutorial Series Part 1

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

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

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

    Amazing. Perfect guide-through. I couldn't ask for more.

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

    Very helpful! This got me over a roadblock I was having. Ive been able to script events, projectiles, etc, but didn't get how to send events from one script to an object attached to another script. I thought each affected object had to be running the same script. Now, I think I can finally implement scoreboards to my Tie Fighter and Shrink Ray games! Just need to figure out a bit more about persistent variables for multiple players. Looking forward to the next video.

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

      Awesome I’m so glad this video helped you with something you were stuck on! That’s exactly why I make these. Thanks for taking the time to comment!

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

    YES I’ve been waiting, I LOVE your tutorials. They are perfect pace, and new user friendly. THANK YOU

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

      Thanks so much! That’s exactly what I’m going for. Glad I could help

    • @omarzp15
      @omarzp15 6 месяцев назад +1

      I designed these grenades and I wanted to know how to script a grenade That also spawns back after the explosion

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

    Best video on player persistent variables I've seen, so many use cases for this.
    If you set the event loop like you did, does that mean it's running every .01 seconds?
    Will that eat up capacity quickly if you had a few of these running? Would sending event with 0.1 sec delay noticably save capacity? Thanks

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

      Thanks so much. So setting it up the way I did has the event run every frame. The quest 2 runs anywhere from 90-120 frames per second so that many times per sec. Which can use up capacity if you have a lot of events doing that.
      So personally if I want something to follow someone I’d use a loop without delay but for checking health or a score I’d probably do the delay of 0.1 seconds. Hope that helps a bit!

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

    Great tuto thx👍👍👍

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

    Your tutorials are a life saver ! Is there anyway to make a grabbable take health away from a player when hit ? Thanks in advance !

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

    Great video and videos! Learned a lot from shooting range tutorials and more. Do you know if there are tutorials that explain all the script commands? I’ve been having to gather a little info on each command with each specific video you post, but only if they are relevant to specific video. It would be nice if there was a video that roughly explained every command and a quick example how they’re used. Thank you! Keep up the good work

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

      Thank you very much! Yeah to be honestly there isn’t a lot of written material on all the commands and I’m still figuring out a lot of them myself. Teaching ppl how to use them by making something with them is the best way I can think of spreading that info. Maybe a video that goes through the basic function of each can be beneficial. Thanks!

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

    Script a pair of sneakers that walk when you move😁 & also add led lights to the sneakers that light up the sole when it touches the floor..

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

      Thats actually a super fun idea! I’m adding that to the list. Thanks for the suggestion!

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

      @@JackaldudeVR if it works out you might be onto a winner, a metaverse sneaker store. good luck.. looking forward to your sneaker video in the future.

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

    Thanks dawg

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

    Love these tutorials! I’m stuck trying to figure out how to get hits from the projectile launcher to register as a score (persistent player variable). Have a functional scoreboard but it’s not registering the hits. Can you include this in a future video? Thanks!!

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

      Ahhhh you’re getting ahead of me lol I will be showing you exactly how to do this in the 3rd episode of this series. Thanks so much for the nice comment 😊

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

      @@JackaldudeVR thank you, I feel like I’ve tried everything 😅

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

      Start by using the when “projectile hit player” command on the launcher script and use the player part of that command to set that players score like the alter. Hopefully that gets you started!

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

    Nice tutorial , how ever we set hp on people who join , but how do you make people lose hp when getting shot by gun. Do I have to make a new script or add a few more lines to it ?

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

      I will show this later in the series but basically you use the pain alter script line with “when projectile collides with player”.

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

    Hey Tony, could you do a video on how to keep score while shooting at moving objects and adding those scores to a leaderboard?

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

      That sounds like that might be more than one video but a great idea! Thanks for the suggestion!

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

    Just found your channel! How would you go about making an object locks on and fires at the closest player?

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

      That’s a bit much for a RUclips comment but I want to make a tutorial on deflection shields and a lot of that script applies to what you’re looking for I believe. I got a lot I want to show and little spare time lol

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

    can you BLESS ME WITH YOUR KNOWLEDGE!!! i need to create a playable arcade machine using UCE files? sound like something you can help with! thank you for the amazing content it is so helpful

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

      Can’t say I’ve messed around with UCE files but horizon is pretty linear in the fact you really can’t bring anything made outside of horizon in.

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

    I'm trying to figure out how to send a delayed event so that a sound bite starts to play after 30 seconds so I can stack sound bites so one will start playing when the other ends. Any advice would be appreciated! Thanks. Subbed

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

      Your in luck there is literally a command of “send event with delay”. Check out my video on scripting events. I utilize it there. Thanks for the sub! Glad to have you!

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

    How do you attach the health bar to like a vest or piece of wearable clothing?

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

      The next video in that series goes over just how to do that. Hope it helps!

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

      Scripting Health Bars for Multiple Players in Horizon Worlds | Tutorial Series Part 3
      ruclips.net/video/Puw4wwLLKl4/видео.html

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

      Thank you for responding! I have soooooo many questions about scripting. I do hope you can help!

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

    So any idea how to have player health with 4 players?

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

      Yeah! We will go over that in the next video. It got delayed a bit but it should be out this week!

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

    Hi @JackaldudeGaming, I would really appreciate if you could make a video on how to make a magnum, I made my own made a barrel with 6 bullets in it, I would realy like to know how to make a bullet dissappear when I shout, make the barel rotate and open to reload when their is no more amo. I hope you can help me with this.

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

      I do want to do a more extensive reloading and weapon tutorial so keep an eye out for that!

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

    Has anyone worked on an inventory system yet? For an rpg game it would be pretty important.

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

      Hmmm that could get a little complicated but I’ll look into it! Great suggestion!

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

      @@JackaldudeVR If player persistence is saved, a small inventory could be done via a scripted matrix of some sort. Is data saved once a player leaves a world and comes back? I.e. If I exit a world with 2 of 3 health will I return with 2 of 3 health? If not, then an inventory would be a short term thing and less of an incentive to continue a journey in an rpg environment I think. I've only just begun looking at the HWorld stuff. I hope it's continues to evolve.

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

      You are correct! In our case here we set health back to 3 when the player renters the world but if we didn’t that value would be save between sessions. Brainstorming but if you picked up a sword you could set that players persistent variable “has sword” to 1. Then when player enter world if “has sword” equals one you could have the sword spawn in front of them or something.

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

      @@JackaldudeVR hmm I imagine that example might be troublesome as if that player didn't pick the sword up then any sort of game economy might be impacted? I.e. multi spawning items. That's why some sort of "pocket/backpack/belt" inventory would probably be best. I'm thinking something like A Township Take as an example.

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

      @@AcidRaine42 it could happen with tagged objects. Unfortunately tagged object is also how you would make collision effects but unfortunately you can only give each object one tag.

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

    Hi, you are the one!!, love all your tips, i´m creattinf worlds in spanish, becuase there is 0 ways to find tutos: I will ask you one SCRIPT, when you enter in a small zone, you became a rocket...!! so jump far up... can you help me with that?. Thank youuu

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

      If you haven’t yet be sure to check out Vidyuu tutoriales en espanol! They are making tutorials in Spanish there! Hope that helpsb

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

      @@JackaldudeVR thank you. i like your work, and how you do it. Easy, not get lost on the translate. But i will check it out, thank you

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

    this is it yeHh

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

    Followed this to a T, and it doesn't work for me , nothing happens. I left world multiple times as well to see if it was glitched, still won't let me , any tips?

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

      They next video in the series has a better way to have the bar follow you as horizon came out with new commands. I talk about attaching the bar to a player instead of having it follow you.

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

      I don't know how I missed this , thankyou so much !

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

      When I do the pain test it doesn't take away a puck :/, what could it be?

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

      Make sure the health values are correct for each puck and make sure the hpcheck is looping. Also make sure the correct objects are attached to there correct variables

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

      @@JackaldudeVR MISSION ACHIEVED, THANKS MAN

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

    I hate horizon cause all the tutorials are nauseating

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

      Sorry about that I’m an animated talker but I’m working on keeping things steady. Hopefully in the future there will be a better way to record these.