Тёмный

Teleport Player on Touch / onPlayerTriggerEnter - Udon / VRChat SDK3.0 

PlayerBush001
Подписаться 3,4 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 113   
@StarVerix
@StarVerix 2 года назад
You give the most straightforward udon tutorials thanks a million!
@PlayerBush001
@PlayerBush001 2 года назад
Nah, Thanks for watching! ^^
@cotfx1530
@cotfx1530 2 года назад
Yes!!! You make UDON SO much easier. Is there a possible way to get like an enemy AI with udon? Either way this video really helps! Also congrats on 1k!
@PlayerBush001
@PlayerBush001 2 года назад
Glad your liking the videos! As for ai, Its not the easiest, especially when it comes to making it simple. There is a TLX talk on the topic, with a prefab of multiple example ai scripts. If that's something your interested in, I would check that out. Personally haven't used ai in any of my projects, so I've yet to properly look into it myself. Hope that helps ^^
@AyataHiragi
@AyataHiragi 6 месяцев назад
Woah this is so well explained and seems so easy!! Thank you so much : ) Im working on my first world and I feel Ill have a blast thanks to this tutorial. All the best for you!!!
@PlayerBush001
@PlayerBush001 6 месяцев назад
Thanks! Glad you liked it ^^
@124578manny
@124578manny 2 года назад
Can’t wait to try this out! Thank you so much for the tutorials!!!
@PlayerBush001
@PlayerBush001 2 года назад
Glad you liked it, enjoy! ^^
@superjare23
@superjare23 2 года назад
Thanks a ton! I cannot wait to do this to the world I've been working on! (Once Unity support assists me with some loading issues) :c
@PlayerBush001
@PlayerBush001 2 года назад
Glad you liked it! ^^ Btw, this probably isn't your issue, but if your someone that likes to organise your computer with folders, make sure the file path isn't too long. To test this, try putting something on a higher up folder (preferably at the top of a new drive so the file path is nothing but e/'your unity project name'). Had that problem before, but it only showed up for me with the new companion app, which has deeper folders.
@nameredacted2220
@nameredacted2220 2 года назад
love all you vids man please keep up the good work they have been a major help in my world, im trying to move over to making a game so if you ever decide on making any vids on game mechanics like sound triggers for horror games, or entity integration i would gladly watch them, great job my dude
@PlayerBush001
@PlayerBush001 2 года назад
Glad your liking them ^^ On this video, the code teleports the player when they enter the trigger. If you switch the 'playerApi, teleportTo' node, with an 'audioSource, play' node seen on my second video I made, then it would play a sound instead (though, you will need to use the 'playerApi, get isLocal' node check to make it only play for the local player). As for the entity integration, do you mean ai enemies? That's been a topic I've avoided as it's not the easiest. If you want to look into this more, I would look at 'SimpleAi' from Centauri (github.com/Centauri2442/SimpleAI), and they did a TLX talk on it too (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xVXXS7HX7Og.html) Hope that helps ^^
@Spookydigy
@Spookydigy Год назад
You saved my ass dude, I have been looking everywhere on how to create a kill floor respawner. I am gonna subscribe!
@PlayerBush001
@PlayerBush001 Год назад
Thanks for the sub! A while before I released this video, I made another one talking about how to move a player's respawn position that might be something of interest (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qpCWzGmfXKI.html) Also included the script shown in this video, but it wasn't very searchable...
@BazhNCC-1701
@BazhNCC-1701 3 месяца назад
it's working perfectly, thank you from Russia) In Altspace it was possible to walk and run and teleport at the same time, so I had no problem with my model of the real coast where I live, in VRChat my world became just not usable, but now I have two teleporters in opposite parts of the map)
@SparkyRiver
@SparkyRiver 2 года назад
love the tutorials!!! super informative and easy to follow! i was wandering if you could please do one on respawning an object a few seconds after it has been dropped? i want to have my 3.0 gun combat map have guns that will respawn if they are dropped for more than 5 seconds. (there is also a holster system implemented, so im not sure how compatible it would be with whatever method you use)
@PlayerBush001
@PlayerBush001 2 года назад
Glad your liking the videos! ^^ As for your question, on first thought, here's how I would go about doing it: First, when you drop a gun, you want to fire a delayed event, and when that delayed event happens, get it to check if the gun is currently held. To do so I would use a bool to store the current pickup state of the object, and use 'onPickup' and 'onDrop' events to turn it on and off. Now this has a couple of problems we need to solve, the first being that if you 'drop, pickup, and then drop' the gun again within the delayed event timer, it will respawn the object super fast. Now, as far as I know, there is no way to cancel a delayed event, other than turn the script off and on again (unlike Coroutines used in base unity - not supported). So, the way I would get around this is I would create another variable, and this one will be an int. Whenever the delayed event is called, it adds 1 to the int, and when it finally plays that event, it subtracts 1. Then when playing the delayed event, you just need to check to see if the int = 1, and if so, then this is the latest delayed event call. Kinda janky, but I don't know of a better method. Now, the gun respawns on drop, but that would also mean it will respawn if the object is put in a holster. So, on the holster, have it so that if a gun gets deposited to it, it tells the bool keeping track of the pickup state to = true. hope that helps ^^
@micflynn1
@micflynn1 Год назад
Dude, This helped me so much!! First Udon script I ever made and was explained great!! Simple, Thanks!!!!
@PlayerBush001
@PlayerBush001 Год назад
Glad it helped! ^^
@nonickname1104
@nonickname1104 2 года назад
Attach it to a sync object and you got yourself a banishing wand. :3
@PlayerBush001
@PlayerBush001 2 года назад
Haha! Now your talking! Just be careful not to banish yourself XD
@onapage_4629
@onapage_4629 2 года назад
your tutorals are amazing! its so hard to find help with these udon vrc specifically!! can you please make a video about flying in vr chat. the best ive found is a video about a rocket, he made it so when you grab the rocket you could fly around the world with it but i could never get it to work. update i got it to work halfway but when i drop the rocket my avatar keeps flying lol 😅
@PlayerBush001
@PlayerBush001 Год назад
Glad you're liking them ^^ Depends on what you're after when it comes to 'flying'. If your just after something similar to what vowgan did in his tutorial, I would get the asset 'Sacc's Flight and Vehicles' (github.com/Sacchan-VRC/SaccFlightAndVehicles/releases) and rip the flying from that. It's the same flying you see in all the plane worlds
@yukicolourart9573
@yukicolourart9573 Год назад
Love your content dude! You've made amazing tutorials which have made me learn so much and I thank you for that but, question! Is there a way to make a teleport pad like this? You walk onto it and teleport somewhere but- instead have it be someone needs to press a button for it to actually teleport you?
@PlayerBush001
@PlayerBush001 Год назад
Thanks! Glad you're liking the videos ^^ As for making a teleporter pad, it is actually rather easy. Simply create a teleporter object using the script I used on this video; make it cover the whole teleporter pad, and then disable the object. Then on your button, make a network toggle, that toggles on the teleporter object for everyone. Then using 'udonbehaviour, send custom event delayed seconds' node, get it to call a custom event that toggles off the object afterwards, to reset the teleporter Hope that helps ^^
@yukicolourart9573
@yukicolourart9573 Год назад
@@PlayerBush001 I see, thank you so much!!
@NoMags
@NoMags 2 года назад
Can’t wait to test this out let’s go thank you
@PlayerBush001
@PlayerBush001 2 года назад
Thanks! Glad you liked it ^^
@blaqitaliano
@blaqitaliano Год назад
My guy!!! your vids always on point, my question is in my world, i have players glitching through locked doors, i placed the teleport on the other side , but the problem is it corrupts the instance and new player cant access the doors after ive opened them if they are late joiners....
@PlayerBush001
@PlayerBush001 Год назад
Yeah... you're gonna need to spend some time looking into it. A lot of coding is fixing bugs like this, and finding out why on earth they are happening. I can help more if you can narrow down the problem exactly (see my 'how to debug your code video (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WSDWzINS0PE.html)), but I can't do much more without spending a bunch of time, looking at detail about your world to find what you may have missed... What I can say, is that I don't have any idea why something like that may happen; except maybe some objects are being turned off, and thus not publishing their current networked values to newcomers. Good luck ^^
@duskydakotavlog
@duskydakotavlog Год назад
Hi, thank you for this video, it's been super helpful! Can I request for you to make a video demonstrating how to make NPCs? Like how to get them to move around to attack other characters/ players, and to set a time limit when they would appear and disappear. Thank you!
@blueninjastudio
@blueninjastudio Год назад
So I was going through and realized that the teleport target where I can put put my teleport location is missing? how would I fix this, did I miss a step somewhere?
@PlayerBush001
@PlayerBush001 Год назад
In the graph, hit the dropdown on your variable, and make it public, so you can see it inside the inspector. You will also need to hit the 'compile' button (found at the top right) as it won't auto compile for just that
@blueninjastudio
@blueninjastudio Год назад
THANK YOU SO MUCH it works now, and I can finish my world
@El_Chapito
@El_Chapito 7 месяцев назад
Hey tried doing everything thing but, every time I do it it's it's either that it teleports me out the room or teleport me into a wrong location if you know on how I could fix it please let me know
@PlayerBush001
@PlayerBush001 7 месяцев назад
make sure you are using 'transform, get position' instead of 'transform, get localPosition'
@El_Chapito
@El_Chapito 7 месяцев назад
Thanks @@PlayerBush001
@toonlegacystudios8529
@toonlegacystudios8529 8 месяцев назад
So I did everything I can, followed step by step, but no matter what I did, the object doesn't seem to teleport me when my player touches it. Edit: (So apparently I did not notice that instead of OnPlayerTriggerEnter, I accidentally used OnPlayerColliderEnter instead, whoops!) Update: (Now it's teleporting me underneath the map for some reason, even though I have the teleport markers ready to be teleported to, am I doing something wrong?) Update 2: (I think I figured out what I did wrong, I accidentally left another thing called Transform Location, it left 2 box that needed a target, and while one had the marker, the other was self teleport, I deleted that so the teleportLocation node is left, the whole teleport stuff now fully works!!)
@Goyokuno_Kami
@Goyokuno_Kami 5 месяцев назад
I tried making this and for some reason when another player enters the collider it teleports everyone in the instance... Imma go through the steps again maybe I missed something..
@PlayerBush001
@PlayerBush001 5 месяцев назад
Huh... You wouldn't have happened to put a 'networking, get local Player' node into the instance slot? You'll need to put the playerapi from the 'event, on player trigger enter'; as you only want that person to teleport, not whoever sees that event play
@Goyokuno_Kami
@Goyokuno_Kami 5 месяцев назад
@PlayerBush001 I think that's what I did 😄. I definitely gotta check after work. Thanks for the help! ❤️
@GrimBirthday
@GrimBirthday Год назад
Thank you so much
@PlayerBush001
@PlayerBush001 Год назад
No problem! Glad it helped ^^
@MrPalps
@MrPalps Год назад
This is slightly unrelated, but could you do a tutorial on how I could create a pickup that teleports anyone it touches except for the person holding it? I ask because I'd like to create a pair of handcuffs that you can use to send someone to jail by touching them.
@PlayerBush001
@PlayerBush001 11 месяцев назад
I don't, but they shouldn't be too hard (depending). A simple method would be to use a pickup, and have a synced bool that turns on when picked up (event, on pickup) and turns off when droped (event, on drop). Then, have an 'event, on player trigger exit', and check if the playerapi = 'networking, is owner'. put that bool into a branch node, and then if it is false, tell the player to respawn. However, this will only work locally; so the other player will have to see the wand hit them, to respawn them. This is much harder in a lobby of 6 or more players, where the two way networking lag is 2-3 seconds. To tell them to teleport when you hit them on your screen, you will likely need to get a list of players, and then fire a network event that tells the player at x point in the list to respawn. That would be a bit much to explain here ^^'
@cfelpsonx4010
@cfelpsonx4010 Год назад
you check the teleporter's operation directly in unity (without entering VrChat). How do you do this?
@PlayerBush001
@PlayerBush001 Год назад
I'm using the asset 'cyanemu' made by cyanLaser, though it is getting a little outdated now. If you use the vrchat companion app (or manually link git and the likes to unity and get the links) you can use ClientSim, which is the new version made by cyanLaser along side the vrchat devs. If you're just starting out making a world, I highly recommend using the vrchat companion app, compared to the old way ^^
@cfelpsonx4010
@cfelpsonx4010 Год назад
@@PlayerBush001 Thank you so much for the advice! I didn't expect a quick response from you. 😅
@jacen2005
@jacen2005 Год назад
Is there a way to make a random teleporter that changes location everytime you go through it?
@PlayerBush001
@PlayerBush001 Год назад
Yes, but the method will depend on how you want to randomize it. If you just want to select a random position out of some set positions, then you would just want to use a transform[ ] to record all the different locations possible, and then choose a random one. If you are unsure as to how to get a random entree from an array, have a look at this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dmtftR4TefI.html If instead you want a truly random location, then i would create two vector3's and call them minLoc & maxLoc. Then when i go to teleport, i would (using the random, range node) randomize each vector3 by their parts (use 'vector3,x' to get x value, etc). Then I would reconstruct my vector3 with a 'vector3, construction' node, and plug that new vector3 into my position slot. Then, i would still need to change the player's rotation, but it can also be done similarly, or perhaps make the player face towards a particular object, using 'quaternion, look at' Hope that helps^^
@jacen2005
@jacen2005 Год назад
Nice thanks for the help
@blank855
@blank855 Год назад
Super Straighforward and really easy to follow Thx alot :)
@PlayerBush001
@PlayerBush001 Год назад
no worries! Glad it helped ^^
@GreenSunshineVRC
@GreenSunshineVRC Год назад
this helps a lot but I guess the max is only one per world or something?
@PlayerBush001
@PlayerBush001 Год назад
Nope, not at all! ^^ Here was a rough video I made to help show someone how they could have two portals, so they could teleport back and fro ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ccm8IlY92_8.html
@ThrowVR
@ThrowVR 3 месяца назад
also a very important one how about a zombie shooter where there are zombies? can you show how to make a simple zombie shooter for a video? please it would help me loads thanks so much ^^
@ozzyczzy827
@ozzyczzy827 Год назад
hey these are pretty good videos. Am not sure how fancy you are with a transition effect. But I am in question how to make it to when a player spawns into a world with a fading black effect (When they spawn the black or darkness slowly fades away)
@PlayerBush001
@PlayerBush001 Год назад
This isn't all that hard to do, but it is more of a shader problem than an udon one. Basically, you need an screenspace/ overlay shader, that you can use to project the darkness from. alternatively, you could do this with a post processing component too, though that will only work for pc. Both methods can be used and configured in a way, where you just need to move a float/ slider value, to cause it to go from dark to light. Once you have that, you simply want to create an animation of it happening. Then using an animator, configured to play the animation when a trigger parameter is called, you can call that trigger from udon using an 'animator, set trigger' node, whenever you want it to play; like how I did it on my video on how to play an animation. If you need an overlay shader, you would be best to make a custom one that has only what you need and nothing else, for optimization reasons. However, there is a shader called 'cancerspace' by 'redmage', that I used for the final jumpscare in my 'how to create a jumpscare' tutorial Anyways, hope that helps ^^
@femboysupcafe
@femboysupcafe 2 года назад
When I click on an object, I want to place the player one by one in the clockwise direction of the net
@femboysupcafe
@femboysupcafe 2 года назад
If there's a bonfire, you click on it and you sit around it clockwise
@PlayerBush001
@PlayerBush001 2 года назад
To do this, you want to have a station for each of the positions around the campfire. Then you want the players to enter them in order as you go around the campfire, so that they sit around it. When entering a station, it will teleport the player to the station, so all you need to do is manage what station each player enters. This... is where I'm a little lost as to the best way to approach this. I think it will depend on your map, but here is two suggestions: First, you could create a button that has an array of all the stations, and when clicked, it gets everyone to play an event comparing an array of all the players 'playerApi, getPlayers', and selects the seat for them and enters it. This will grab everyone in the scene though, which might not be desirable. Be aware that only the local player can tell themselves to enter a station, and trying to get another client to do it won't work. The next method might be easier though, and that would be to change the seat's 'click to enter' collider's position, to be at the location of the button. Then disable the collider on all but the first seat. Then have a script on each of the seats so that 'onStationEnter', disable this seat's collider, and enable next seat collider. That way, the button will always be the collider for the next seat. This will however mean that every player has to click on the button to go to the campfire. Also means that if someone gets up, they will go to the next station on the list, instead of filling in the hole. This could be mitigated with some code though Hope this helps ^^
@ThaNexus
@ThaNexus Год назад
Thank You soooo much you really helped me alot
@PlayerBush001
@PlayerBush001 Год назад
Glad it helped ^^
@JacksonPlayzRoblox
@JacksonPlayzRoblox Год назад
How do I make it to where the player can teleport back
@PlayerBush001
@PlayerBush001 Год назад
Easy. You simply want to duplicate it, and make the new portal's target going back near the other portal. Just make sure that it is far enough away that you don't hit the portals trigger when you are teleported; otherwise you will have an infinite loop XD
@JacksonPlayzRoblox
@JacksonPlayzRoblox Год назад
@@PlayerBush001 I am having trouble I did that but it is not teleporting back to the other teleport target it is teleporting to the same one. Could you please do a tutorial on how to do back and forth?
@PlayerBush001
@PlayerBush001 Год назад
I believe you have just forgotten to change the target teleport position, but here's an informal tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ccm8IlY92_8.html
@necatron73
@necatron73 2 года назад
I'm using something similar to this for admins at my night club. Any chance you can looking maybe an auto ban spawn? Say if someones added to a blacklist (like an admin list) but when and if they spawn to your world they spawn only in a an box away from everyonr else. I tried to build one but when I made it live it caused everyone to respawn when anyone joined.
@PlayerBush001
@PlayerBush001 2 года назад
I'm a little hesitant to promote these kinds of scripts on my channel, as they tend to lead towards exclusivity, where as vrchat is best (in my opinion) when randos that never would have meet due to differences, get to meet through vr. As for your script, I would recommend using 'event, start' and 'networking, get localPlayer' instead of 'event, onPlayerJoin'. Also, if your not using it already, use 'playerApi, teleportTo' instead of 'playerApi, respawn' Hope that helps ^^
@OldPoi77
@OldPoi77 Год назад
You know i love your work but as one constructive criticism, Please slow down the pace you speak at i very much struggle even at 75% speed to understand you in some parts and it is slightly frustrating, other than that your guides are great.
@PlayerBush001
@PlayerBush001 Год назад
haha, a very valid criticism ^^ While this is getting close to the speed I usually listen to a yt tutorial at, for those following exactly steep by steep it is rather painful. I actually did a bunch of work to try and slow down a bit, but I find I just get bored when recording and start making a load of mistakes instead ^^'
@OldPoi77
@OldPoi77 Год назад
@@PlayerBush001You could try using a metronome to pace yourself or even some music that has a slower rhythm that you can follow while working, this can help in some situations like this to keep your attention up. Thanks for replying hope you have a wonderful day.
@Freezorgium
@Freezorgium Год назад
So you put an OnlyPlayerTriggerEnter -> Teleport to... I have a world I'm making I have a Teleport To with four inputs, top to bottom in order of descending inputs: OnPlayerTriggerEnter Networking-Get LocalPlayer TargetLocation-Get position and Get rotation When I'm testing alone or with one other person it seems to work perfectly, however, with 3 players or more we started to notice that occasionally unrelated players would, about 1 in 10 times, also get teleported to the target location. None of us knew why this bug would happen.
@PlayerBush001
@PlayerBush001 Год назад
Ah, this is a common mistake. 'Event, onPlayerTriggerEnter' gets called whenever ANY player walks into the trigger; not just the local player. Therefore, when the information to move the player comes before the information that they teleported, other clients may see that player walk into the trigger and therefore be told to also teleport themselves. To correct for this, you will want to use the 'playerApi' value in the 'event, onPlayerTriggerEnter' node, as that says what player walked into the trigger. You could just plug that into your 'playerApi, teleportTo' node like I did in this video, or you could instead check if it was the local player that walked into the trigger. The fix for your old code would be: "event, onPlayerTriggerEnter' --> 'playerApi, isLocal' --> 'branch' -(true)-> 'playerApi, teleportTo" Hope that helps ^^
@Freezorgium
@Freezorgium Год назад
@@PlayerBush001 Can't believe how fast you replied. Legend.
@PlayerBush001
@PlayerBush001 Год назад
This is a bit of a hack done for simplicity. The playerApi value says what player entered the trigger. Therefore, theoretically, this script is making every player that sees a player walk into the teleporter, tell that player to teleport. However, the client can only move around the local player, so it will do nothing unless it is the local player that walked into the trigger If I was doing more things for the player being teleported, I would do the method mentioned in the previous comment. but just for this, I probably wouldn't bother and just do the hacky way
@Freezorgium
@Freezorgium Год назад
@@PlayerBush001  Just a question; You said "The fix for your old code would be: "event, onPlayerTriggerEnter' --> 'playerApi, isLocal' --> 'branch' -(true)-> 'playerApi, teleportTo"", I tried following that here i.imgur.com/YMC7qbC.png but I'm not sure this is what you intended, since this appears to break the teleporter. I'm no coder, programmer or anything but I suspect that "OnPlayerTriggerEnter" being "True" makes no sense, and it would make sense if the "isLocal" was "True", but I'm not sure what to do with the "bool" output.
@PlayerBush001
@PlayerBush001 Год назад
The 'playerApi, is local' node takes a playerApi variable, and produces a bool at is true when it is the local player, and false when it's not. The branch node takes a bool value, and when the code flow/arrow goes through it, it directs it to the true line if the bool is true, and the false line if it is false. Long story short, plug the 'playerApi, is local' node's bool into the bool input on the branch node. Have a look at my recent jumpscare tutorial to see an example of this ()
@johnwoods8460
@johnwoods8460 7 месяцев назад
I get an error Unity says I need to used destroy not destroy immediately what do I do
@PlayerBush001
@PlayerBush001 7 месяцев назад
That sounds like an unrelated error message. Either that, or you have used some wildly different modes to what was shown here As for fixing that error, that sounds like an internal problem; likely due to a sdk thing or other asset/ prefab. If it still works fine despite that, I would just ignore it
@multipledonuts
@multipledonuts 9 месяцев назад
Can you make a tutorial where player teleports with a picked up gameobject?
@ChickenSkit
@ChickenSkit Год назад
good tutorial , but so frustrating that you have to go so freaking fast ! i had to go slowmotion , replay
@PlayerBush001
@PlayerBush001 Год назад
I actually recommend slowing down the videos. The videos are designed to be a good overview for those wanting to learn how I did it, but you will definitely need to slow it down if you want to follow step by step. At least, that is my excuse. Honestly, I just get bored if I go slower and then I start making a ton of mistakes ^^'
@ChickenSkit
@ChickenSkit Год назад
its just a me issue :P , i did slow it down and worked out fine , i just had a bad day that day , my bad
@Solutra
@Solutra 5 месяцев назад
Would it be possible to only teleport along 1 direction and keep the other 2 directions the same for the player? for example, if someone was walking in a hallway and I wanted to teleport them to a nearly identical hallway, I'd put the second hallway above and only teleport the player to the teleport point in the hallway above using only the Y axis, but keep the player's X and Z axis so they wouldn't go in the middle of the hallway if they were at the wall, how would I do that?
@PlayerBush001
@PlayerBush001 5 месяцев назад
sure. All you need to do is to create a public vector3 variable called 'offset'; and then get the player's position (playerapi, get localPlayer --> playerapi, get position), and add them together (vector3, addition). Then you can plug that into your 'playerapi, teleport to' node's position. Now it will move the player by however much your 'offset' variable is set to If you don't want to override the player's rotation, you can just get the player's rotation (playerapi, get localPlayer --> playerapi, get rotation), and plug that into the teleport to's rotation Hope that helps ^^
@Solutra
@Solutra 5 месяцев назад
@@PlayerBush001 Getting a bit of a problem, and I don't know if I'm just stupid and did something wrong, or if the entire thing is just bugged. I don't see anywhere other than the "default value" to change the offset (which most likely just is what I'm supposed to change but idk), and no matter what I do, it just spits out "Moving player to (bla, bla, bla)" in the console, and the location it says it moves me to is just the same location that I'm already at, which doesn't change even if I change the offset thing, and it doesn't actually move me anywhere other than the same location I'm already at.
@PlayerBush001
@PlayerBush001 5 месяцев назад
@@Solutra I believe you need to make the vector3 variable public, and then you should be able to change it in the inspector. Make sure you hit the 'compile' button at the top right of the udon graph, as just changing it to public won't cause it to auto compile. If you're still having issues, feel free to join the discord and post your graph there, as its easier to help when there is an image to work with ^^
@Solutra
@Solutra 5 месяцев назад
@@PlayerBush001 I was trying to change the offset in the udon graph variables thing instead of the public variables in the inspector 😭
@PlayerBush001
@PlayerBush001 5 месяцев назад
@Solutra haha, no worries no worries ^^ Btw, for future reference, there is only 2 reasons to make a variable public: 1. To allow other scripts to edit it 2. To make it editable in the inspector For most beginners that are just making standalone scripts, the second reason is the most common
@wonder7043
@wonder7043 5 месяцев назад
How do you do this but instead of teleporting a player I could teleport to move like a video player or something
@PlayerBush001
@PlayerBush001 5 месяцев назад
have a look at my player follower tutorial. In that script, I move an object by teleporting it every frame; to make it look like it's following the player. Just change the 'playerApi, get position' to a transform variable's position; like I did in this video for the teleported player's position and rotation Hope that helps ^^
@wonder7043
@wonder7043 5 месяцев назад
@@PlayerBush001 I’m a bit confused still
@wonder7043
@wonder7043 5 месяцев назад
@@PlayerBush001 I’m not sure if I explained well but I was hoping I could make a trigger so that when my player moves say to the second story of a building the tv would move to a spot on the second floor, and then if I went back to the first floor it would go back to its original position, kind of like how in popcorn place when you enter another room the video player will teleport to that room
@PlayerBush001
@PlayerBush001 5 месяцев назад
@@wonder7043 nah, perhaps I was too vague. First, you need to understand events. The green event nodes say when the script will do anything. In this video I used 'event, interact', which will make the script play when you click the button. My object follower script video use 'event, update' (or late update/ post late update) that plays once every frame. If you want to make it so that it plays when you walk upstairs, that would need to be done with 'event, onPlayerTriggerEnter', with a check to make sure it's the local player that triggered it (see first script in automatic door tutorial). Then it comes to main part of the code. In this script, we have a player that we want to move, and a empty gameobject that shows where we want to move. More accurately, we are using a transform variable, which is the component on the object that contains it's position, rotation and scale. We are using this to get a position (vector3) and a rotation (quaternion) to teleport to. My player follower script does the opposite, in that it uses transform as the thing it wants to teleport, and a player for it's location and rotation. The only other difference, is that that script uses an 'event, update', so it plays this code more often. In your case, you want to use two transforms variables; for both the thing to move, and to show the new position. That means you want to get the position data from a transform like this script does (get position/ rotation) and plug that into a 'transform, set position and rotation' node like found in the player follower script. The only difference, is that this will be a second public transform variable plugged into the instance slot. To make it play when you walk upstairs, you will want to make the object this script is on a large trigger object that the player can walk into, and replace the event interact with an 'event, on player trigger enter' Hope that helps ^^ If you are still confused, I ask that you please watch my two udon 101 tutorials: "How to Toggle ANYTHING (almost) in Udon" and "Change When An Event Plays" that go over the basics of how nodes work
@ThrowVR
@ThrowVR 3 месяца назад
hello i need a VERY VERY important udon tutorial made you havent seem to make a video on it but i was wondering if you can do a video on Udon vrchat Climbing Cheers :D
@PlayerBush001
@PlayerBush001 3 месяца назад
If you're after climbing, I would recommend checking out this asset: github.com/VoHeLi/Udon-CGS
@ThrowVR
@ThrowVR 3 месяца назад
@@PlayerBush001 i did and it didnt help me i recently downloaded it put it in my project before asking the question i couldnt figure it out but honestly i learn and achieve from every one of your videos will you please make a video on how to add climbing :D? it will actually teach me
@LeagueofKujiza
@LeagueofKujiza Год назад
ctrl+shift+ " if "?
@PlayerBush001
@PlayerBush001 Год назад
Ctrl + shift + f ^^
@_Enokii_
@_Enokii_ Год назад
It didn't work for me 😭
@PlayerBush001
@PlayerBush001 Год назад
'how' did it not work? Did it literally do nothing, or did it do something that was wrong?
@yumily16
@yumily16 2 года назад
hiiii¡¡¡ I like your videos a lot and they help me too, could I make a video of a spinning Ferris wheel and the animation of throwing yourself down a slide?
@PlayerBush001
@PlayerBush001 2 года назад
Glad your liking them ^^ As for the Ferris wheel, that should just be a simple animation that I've already cover. As for the slide, the easiest method would be to create a object pool and get it to spawn in a station, then either make a player jump on, or just force them into the slide. That would be more like a water slide on a tire though. Either that, or do some fun with changing the player's velocity. Both methods are a bit complicated and would take a bit to explain, or I just need more time to think of a simpler method..
@yumily16
@yumily16 2 года назад
​@@PlayerBush001 I would appreciate it very much if you could make a video of that, I did not find any video of how to do it. pd: new sub
@PlayerBush001
@PlayerBush001 2 года назад
I showed how to make an animation on my lockable door video (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CJfhG8-KGvs.html), but as for the slide, that one is a bit of a large video for such a niche topic. If you made a seat object that people can slide down on it with, you could use my latest video on 'using an object pool' to learn how to spawn them in when asked (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-s96fkF2MsaY.html)
@Iwidelyoutliveeverything
@Iwidelyoutliveeverything Год назад
didn't work
@PlayerBush001
@PlayerBush001 Год назад
okay? but how? Does it teleport you wrong? Does it fail to do anything? Does it spit out an error message when you go through? Does it teleport you, but in the wrong location? Does it make the object disappear when the game starts?
@Iwidelyoutliveeverything
@Iwidelyoutliveeverything Год назад
nevermind I made a mistake
Далее
Why Making Multiplayer Games SUCKS
6:46
Просмотров 423 тыс.
How to Optimize your VRChat World INSTANTLY
6:34
Просмотров 12 тыс.
СМЕЛОЕ РЕШЕНИЕ #shorts
00:14
Просмотров 23 тыс.
Bike Vs Tricycle Fast Challenge
00:43
Просмотров 16 млн
I made a VR game to propose to my girlfriend
14:17
Просмотров 2,1 млн
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 961 тыс.
Someone Made Pay 2 Win: The Game And Its Hilarious
14:11
I tried Discord Bot Makers...
14:19
Просмотров 123 тыс.
How to make a Multi Key Door - Udon / VRChat SDK3.0
23:31
How to set up Post Processing for VRChat
3:55
Просмотров 20 тыс.
A new way to generate worlds (stitched WFC)
10:51
Просмотров 529 тыс.
СМЕЛОЕ РЕШЕНИЕ #shorts
00:14
Просмотров 23 тыс.