Opening Door Script in Horizon Worlds!
Вставка
- Опубліковано 16 лип 2021
- In today's video we will be using Occupied and Empty to open and close a door, at the end we explore rotations in Horizon and how to make a constantly rotating object.
New to Scripting?
• Let's Start Scripting
New to Horizon's Creation Tools?
• Let's Start Creating (...
If you have any questions don't hesitate to ask! :)
Checkout out the documentation on the Vidyuu wiki:
horizon.vidyuu.com/app/page/1...
Download the PDF Here:
www.dropbox.com/s/bdoyuxl6fm4...
Support Us On Patreon:
/ vidyuu
Amazon Affiliate Link:
Oculus Quest 2: amzn.to/3kNscFt
Like Us On Facebook:
/ vidyuu - Навчання та стиль
Thanks. I spent 2 hours trying to figure this out myself.
I feel you on that one spent four hours spireling into insanity
I love the physical example you had at the end! ^^ it really helped me understand it better!
Thank you so much, so happy to hear this! 😁😁
Thanks! I used your door tutorial in my Horizon World “Lake Retreat”! 🤓
400 subs, congrats!
Thank you so much Mikey!! Still hard to believe, I truly am blown away by all the support we get, thanks for being apart of the Vidyuu fam! :)
This is so much easier than the counting! Woot!!
Right!?! 🎉🎉
I followed step by step and got it! Thankyouuuu
Congratulations! And thanks for watching 😁💜
What degree would you use for a sliding door? Like an elevator door however my building is one level.
Thank you ! Can you make a tutorial for horizontal doors (like an elevator door) ? Thanks 👍
Is there a way to add to this script to add a lock so it'll only open with a key? I can't figure out how to do this.
Hey bro. I have an idea for a game but I needed some help scripting it. Do you take commissions?
You are always so unbelievably helpful! The more advanced script at the end, could that be used to animate a garage door?
We’ve definitely used this for garage doors, but our garage doors hide above the garage, and inside the wall… I think it would be nearly impossible to design a garage door that behaves like a real garage door due to the bending that a garage door does as it’s putting itself onto the ceiling… You could pull it off if you want to spend a lot of time working on math and also use a bit of simulation and animation.
Coming to think of it, it might even be best to use scale to, which is how we do curtains on stages, this allows you to shrink the wall so that it’s flattened and hidden in the ceiling … Let me find that video :)
Facebook Horizon: Interactive Curtains Tutorial
ua-cam.com/video/1u4Yym1g73s/v-deo.html
@@Vidyuu You are amazing. Thank you so much! 🥰
Hello. Thank you for the amazing Tutorial. If you could help me with one thing I would be so grateful. HOW DO YOU HAVE AN OBJECT ENTER A TRIGGER AND HAVE THAT ACTIVATE AN ANIMATION??? EX: Key opens door.
I can not remove the OBJ in the script or add anything in its place.
How do you make a sliding door?
Hi Vidyuu! I am having issues connecting the hinge for some reason. I've done everything, everything is right but for some reason I absolutely cannot get the door to stop opening like a garage door, and swing open like a normal door. I know its an axis issue, but *shrugs* I dont know how you get it to swing on that axis. I asked while in Horizon and was directed here (though I've already watched the videos, wrote down each step and modeled in in my create worlds, just that ONE thing...it wont swing open, and I was told that you had a pack that you could send to with the doors included). Are you still doing that? Thanks for reading!
Definitely, what’s your Oculus username and I can add you to the pack, there’s actually a door in there that already swings open correctly… so you could just replace it with your door. But if you’ve got it opening like a garage door, in the properties panel for the rotation value, you just want to change the axis it’s applying the rotation to. For instance if it currently says 0,90,0. Try using 90,0,0. Etc.
@@Vidyuu Right! Funny you say that! While waiting your reply I figured the only thing I hadn't tried was moving the 90 around. I put it in the second property panel and the door swung the right way. I'll add my username anyway though. I've decided to just watch all your tutorials first, lol! I appreciate you getting back to me and helping. Thanks! Username: Lux_Nifty
@@Vidyuu Can you PLEASE add me to the pack for the door. This tutorial goes super fast. My Horizon name is YattaYatta
For some reason I don’t have a trigger gizmo. Do you know if I need an update or something to get it?
Try scrolling down, either click and flick the menu, or point and use your thumbstick... let me know if this helps :)
@@Vidyuu I restarted the app and I needed to update it. Not sure why it wasn’t there the menu may have just gotten stuck. Thanks for the help I got my door made. Your videos make the scripting so much more digestible.
Do u have a course outline developed for a person interested in getting started
Great question! 😁 I recommend you start with our Let's Start Building Series:
ua-cam.com/video/0m63U1YCiyI/v-deo.html
Then we have Let's Start Scripting:
ua-cam.com/video/vI9X1le-tzg/v-deo.html
And there is also some great information available here:
www.oculus.com/horizon-worlds/learn/
I have followed this to the letter and at the end there is always a little red x next to the first "set to" bar. How do I fix that?
Taking a screenshot and share it to our Discord under "Creator Support"
discord.gg/v6hcQ9DtDv
So i followed this tutorial and it worked amazing, however when i put it in a doorway it opens in all weird ways and doesnt function properly, any ideas why?
Interesting, you may need to adjust the rotation by amount.... I suspect it is something small, can you send a screenshot to me on Facebook to take a quick look:
facebook.com/Vidyuu
Now that was extremely hilarious that women put on a great job acting
This was almost exactly what I was looking for thank you so much. I was also wanting to know if you have a video on how to do this with an object instead of a player?
This should help :)
Let's Start Scripting: Teleport Key (Facebook Horizon)
ua-cam.com/video/_ezDZhfrfZM/v-deo.html
Can you make a video to script an object for only a certain player or players are able to grab and object
Hope these help, if not let me know! 😅😁
Creator Tools & VIP Doors
ua-cam.com/video/g1K9EyELw64/v-deo.html
Set Who Can Grab
ua-cam.com/video/aGmsnrvl09s/v-deo.html
Who Can Grab Objects & Who Can Grab From Holder
ua-cam.com/video/yINwUVSwEfw/v-deo.html
😊
When is the next scripting class
Tuesdays and Thursdays in the evening :)
*not sure of the exact time but you’ll find Tuesday in the attend tab
Oh PLEASE Help I've followed this step by step ... it WORKED ..... I Was SO PLEASED..... THEN I grouped it and tried to place it in the doorway I wanted it to go and 😢 it over rotates and won't sit properly.... I can see in build mode where its supposed to be but it won't stay 'in the box' 😖 3 days now 😖
I am so sorry to hear that, please consider joining our Discord, we have an awesome and active community that loves to help. The #creator-support and #scripting-general channels are where I would go first. Consider tagging @Laex05 there, he is the creator of this tutorial :)
Two things to also consider trying, ungrouping the door, and clicking stop reset play in the build menu. The over rotating has me puzzled though 🤔
discord.gg/v6hcQ9DtDv
Hi, would you explain how to create a trigger where if a user crosses its path a projectile shoots them and sends them back to the respawn point?
This might be a fun one for our Sunday live stream, join us at 4/7 PM PT/ET :-)
my door opens 45 degrees even it at 90
That is extremely strange, double check your script to make sure the variable is reference correctly, and also check on the object itself to see if it has a unique parameter, as when you type in a parameter on the object properties panel it overrides what you type in on the script panel. There’s an X box next to the variable on the object property panel to clear it out 😁
@@Vidyuu I Fixed it THANKS
i somehow got here idk how
hes going so fast at explaining
way to fast
As a beginner, this went wayyyyyy to fast for me. Lol
All this to open a 🚪
lol my door doesn't work but I spent an hour copying you lol... I dont know what I have done wrong... lol damn
I’m sorry, consider coming back fresh to have a second look, is it just not opening? Make sure you have a plid param in the event…and that the door is referenced 😅
@@Vidyuu I will definitely have another go. It might have to do with my rotation point but i snapped it together... I might just end up animating the door with a trigger, but this is more advanced so i wanna learn it. thanks for the response.
the last examples are too glossed over, you really have to spend more time on euler and quaternions as well. none of this would be a big deal if horizon worlds had better forward kinematics. maybe in the future?