Create an Admin / VIP Only Room - Udon / VRChat SDK3.0

Sdílet
Vložit
  • čas přidán 11. 05. 2022
  • How to cycle through an array: • How to Call All Object...
    Here's a tutorial on how to create an Admin/Vip Room that only admins and/or Vips can enter. This does require you to add them to a list when building the world, and it is case Sensitive so do keep that in mind.
    This same method can also be used for those of you wanting to make anything that is exclusive to a particular player/s, by doing something else on the second arrow on the block node; using the bool to check if they are on the list or not.
    So hopefully this is helpful. As always, if you have any questions, feel free to ask in the comments bellow! ^^
    Come join the discord! / discord
    Wanna help support me in making more vrchat stuff? Support me on patreon! (I'm grateful for any support ^^') / playerbush001
    #VRChat #Udon #SDK3

Komentáře • 110

  • @PlayerBush001
    @PlayerBush001  Před 2 lety +5

    A bunch of people have ask about how to do the admin door with a teleport instead, so here's a rough video explaining how: czcams.com/video/n1-bf2KnfU4/video.html

    • @Vanilla2103
      @Vanilla2103 Před 2 lety

      Thank you that helps alot 😁

    • @crusadershichen
      @crusadershichen Před rokem

      cant you just use the same code as you did in your "teleport player on touch" video? instead of a door, use a cube or any other object?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      @@crusadershichen your not far off, but that code doesn't check to see whether or not your an admin before teleporting you.
      That being said, all I did in the follow-up tutorial was replace the animator node with a 'playerApi, teleportTo' node found in that tutorial

  • @bobhawkey3783
    @bobhawkey3783 Před rokem +10

    These tutorials are great. Thank you for doing them. I've been using Cyan Trigger to do this stuff because I suck at Udon. You should definitely be packing these up as prefabs for those of us who are too dumb or lazy to learn Udon. I fully admit to being both! Cheers.

    • @PlayerBush001
      @PlayerBush001  Před rokem

      Glad your enjoying the tutorials! The best way to get better at udon is to do more of it, so I hope my channel can help people understand how to use it better ^^

  • @rockthestar100
    @rockthestar100 Před rokem +6

    Whitelisting Players with this function is also a possibility by setting 2 separate Udon Behaviors with the Events as > OnPlayerJoin + OnPlayerRespawn > and setting a transform to teleport them to a "whitelisted area"

    • @PlayerBush001
      @PlayerBush001  Před rokem +1

      or alternatively you could do this with just the start event, by getting it to move the spawn location obj and tell the player to respawn with 'playerApi, respawn (networking, get localPlayer)'
      that being said, while there are some definite use cases for a script like that, a script like that often is only useful for excluding others from a world. If you just don't want anyone but friends joining, Vrchat's world privacy settings are usually plenty good enough for that; and if you're worried about someone bypassing that with hacks, this script will do nothing to stop hackers from flying through walls, or just teleporting to ya
      Either way, nice one adapting the script ^^

  • @MovieFactory
    @MovieFactory Před 2 lety +4

    you already helped me with something similar on discord. this was extremly helpful

  • @greykenny
    @greykenny Před rokem +2

    thank you soo much!!!

  • @alwaysyouramanda
    @alwaysyouramanda Před rokem +2

    😍 this is the best!

  • @MarshmallowToazt
    @MarshmallowToazt Před 2 lety +3

    If you're able to, do you think that you could create a tutorial on making objects or characters follow the player (kind of like an NPC?)
    It's totally okay if you're unable to!! It's just a silly suggestion 💕

    • @PlayerBush001
      @PlayerBush001  Před 2 lety +3

      That is a little hard of a question to answer/ cover in a tutorial. The problem being, is that there needs to be a few things gotten right for it to work.
      First, you need to know where the player is (actually cover that in my next tutorial).
      Then you need to know the distance you want the NPC to keep, which isn't hard, but just is another part of complexity.
      The next bit though, is getting it to follow you around the world..
      Now, if it was a flying npc and one that you don't mind clipping though walls, you could just do a position lerp to the player and leave it at that, but that wouldn't work if you wanted them to walk to you. To do that, I can think of two ways. First is what some avatars have, where it's just a spring joint that pulls the character towards you, with a damping effect to avoid it from going flying. The second and more natural look, would be to use a nav mesh and ai, to figure out the best path to get to the player. This is something I personally haven't delved into, but there is a really good talk on TLX about this in relation to vrchat, that I would recommend checking out if your interested (czcams.com/video/xVXXS7HX7Og/video.html). I also remember a blog post by vowgan talking about his NPC system he made for booth worlds, but I can't remember where I saw it, so I can't link it

  • @Dan-yl2ov
    @Dan-yl2ov Před rokem +2

    Hi thanks for the awesome tutorial, do you think you can create this in U sharp it would be very helpful

    • @PlayerBush001
      @PlayerBush001  Před rokem

      tbh, udon# videos don't gauge much interest or views; mainly because people who use it often learn through c#, from people that are much more knowledgeable about best coding practices.
      Also, while they are similar, the restrictions of graph (combined with 'event, onVariableChanged' being a pain to explain in sharp) means covering both methods in a single video is a bit restrictive, so I don't really want to do that either.
      I would much rather teach how to covert between the two, as it's not too hard once you break it down. Then I can just focus on udon graph, which is what the majority of newcomers want to see (that may or may not be something I'm slowly working on getting ready...)

  • @greykenny
    @greykenny Před 2 lety +2

    Hello could you make a tutorial about transition and then reset everything from the beginning in the world?
    Maybe a tutorial about triggers a voice range to far by the time I go into specific place like stage etc

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      the process of resetting everything in a world really depends on what you have in your world that your resetting. Usually this means having a custom event on a bunch of scripts, that reset them to their default. Then the 'reset world' button calls all those events. Unfortunately, that isn't really that easy to do as a tutorial.
      If you just want to respawn all items, look at my tutorial on respawning any global object czcams.com/video/p6vtL_BRMEo/video.html, and in the comments there is a link to how to make it respawn a bunch of objects.
      As for the making a stage like environment, I don't really have a tutorial on it, but apparently this prefab has helped others so perhaps this is all you need: booth.pm/ja/items/3470862
      Hope that helps ^^

  • @mintzoeygames
    @mintzoeygames Před 2 lety +2

    Suggestion: Could you do a count up timer with a reset button? I'm planning to add a music festival to my world and a timer would be perfect for DJs!

    • @PlayerBush001
      @PlayerBush001  Před 2 lety +2

      Thanks for the suggestion!
      I like to make vids that will bleed into others, and unfortunately I don't know if I can do so with a counter (delays normally use 'SendCustomEventDelayedBySeconds'). I'll add it to my ideas list, but no promises

  • @Vanilla2103
    @Vanilla2103 Před 2 lety +2

    If i wanted to set it so the player (if admin) is teleported to the admin room and have room toggle on how would i go about doing this.
    Tutorial possible?

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      Your not the first to ask.. So here's a rough video explaining how: czcams.com/video/n1-bf2KnfU4/video.html

  • @tonynattawat3460
    @tonynattawat3460 Před rokem +2

    Hey this tutorial is amazing! May I ask how many admin names can we fill in the list? is 10000 names possible?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      Thanks! Glad you liked the tutorial ^^
      As for the limitations of this method, I wouldn't use this for more than 500 or so players. I don't know where the theoretical limit is, but just from a practical standpoint I would want to automate the process for that many players. I would be more inclined to do it as a large string; with each name being separated with a line break. Then I would go through each name, checking character by character as that should be faster, and if one is wrong just skip to the next name. Also would make it much easier and faster to add new people to the list
      However, a much easier method (albeit less secure) would be to instead use a keypad and password. There is always the problem of the password being leaked, but it would be wayyy easier to do. I believe there are even some prefabs for this very thing...

  • @necatron73
    @necatron73 Před rokem +3

    Any chance you could do a "If banned or non admin enters the world" trigger sound but only the admin can hear it. And the sound can be toggled on and off.

    • @PlayerBush001
      @PlayerBush001  Před rokem

      This is something I don't really want to explain much on my channel, due to all the pettyness i've seen on the platform. That being said, there are many good uses, like in a club and the likes. It would take a bunch to explain this via text however, so here's a mockup/ untested version of the script, that you can copy and paste into a blank udon graph:
      application/vnd.unity.graphview.elements AO1cW48TRxb+K8jPU1ZdT1Uh8cAtEZtVEoXAywqN6kq8GDtre5JFwC/bh/1J+xf2a3uudo2nmYzBAwMIYU/bXX3O+S7nVDf/+89/3w/+COOjMrj/j/eDejQe/xje4sXgZZiNQhyXw+fv5ovy9tF0Oi5hMjgYHI0yfhyc1tbrzHRNiuHfmXlnCkuaKyVVSaEkHPz7dD5ajKaTwf33g38P7jNrNQ0dKemENAeDd4P7gqQaCsc9d5IrvPvxYDCZ5vLi2ZM51jTAl5z9eXUwqOPpn8c/e7U68mW3/Ply/UeT0eLdT/GfJS1eri7q/WA0mS/CJJVnTwb3Ob58vpiNJq+PfzwYfDy4zsdWQRk+X755cO/tPE1n41E8uPeyzOa43gd6yLvfB/ceH40XR7PyYFKOFrMwPrj381Ecj9IP5d2v0zdl8iBaG0wyJLzShTv/YTR/mN+OJn9tYcfputmVfRfG8/J1rmsXiZxMJ1jVq25dl+NqdeKHs1l4d4ot7gSZaIkZ3WGr6sq8iJJFlbx2mZsiZANbJIwdemON8EadwMsSFm9In7ytvnV4hQ5cXS7me1jJv86O7gB2swBbFy4H8IROuFymAOFKgvkErJEsPqQss+eiAS4AiIZQtgvgktoOrfFOEhEXh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NkUJNaFovisOhLdUVTn1wlU1q7H1++FXwBh0J65w6lyXR9otaCFIyH1NA4a86I7mSLSpmV3G48N32riK7Xk0I3RnTjaXpztlWTrfTgWTBrQI+VNWfOCwJ+qoQzNDyI1h4seq8hR3vi4f66/xdCrVwQfM/QcA6uQ0Y7/tu2ddx32xKRqjg0wZbZjP4oYImcV2bAytbapIu/mTHw5zUgV0pQr+tu3fQjG0+2rAyqQMpEt8/mNg1qEMqHoDQrNUacTmS0BRWng6NVXHG8SJu39kYoYV7eFFmd6kZ0iaH3zEyiioI3JuDDt1WD2n6tR5iagAFhcSuQuG6n/TgpjoZeWiDFcOOMV+5W09hO98WvoLE+Zdi4a9GZJlYs34qVNQz0bCN7WcqvkMdcylTwC3YMnlZXlAW8mGBJapG0LsU2ESO4RhnC/aLJOZcabobeGm+k0E5vKMzAJFmcMJlVXjjTXlQWKqqhRlXQRSv056LBYn1U8Jay2NM/ymRx+NNkNSj62xSO+sw095nQtD2ZX58Geb98dtJaYwAYb9RWzPQqiqtuLmsSdJ8KaF4SmaF0pnu4+oSdBVps4TiB1gFhrW81O/d6Uvb6FPDq4/8B

  • @killmothegamer793
    @killmothegamer793 Před 2 lety +2

    Does this work with a tp udon block code because I can seem to figure out a way to make it

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      If you know how to make it with an normal interact button, all you need to do to do the admin check, is put that bit of code after the 'true' arrow on the second branch node. Then that bit of code will only run for those that are admin. In my case, I toggled on an object and told the animator to play the 'door open' animation. I could put anything there, like telling an audio source to play or something, and it would only run if the person clicking on the door is admin.
      Hope I understood your question right..

  • @PatricksGS
    @PatricksGS Před 2 lety +2

    How would I be able to add multiple names to the Admin list?

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      The admin string array has a 'size' value, seen in the inspector. If you increase this size, you get more slots

  • @ReersTheEpic
    @ReersTheEpic Před rokem +2

    is there a way to make the script user id based instead of username based?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      There is, but the player's id changes based on when you joined the instance of the world, making it completely unusable for a baked in method as shown here. You would instead need to make the playerID list mid-game, for it to be of any use.
      To do this with Id, you would want to replace the string array with an int array. Then set you will need to fill the int array with your player id's that you want to be admin. Then, when cycling thorough the list, we want to replace the string compare node with an int equals node; and instead of using 'playerapi, get display name', we want to use 'playerapi, get playerID' node instead.
      Hope that helps ^^

  • @mintzoeygames
    @mintzoeygames Před 2 lety +2

    Question: When it allows you into the room, is it Client sided or Server sided?

    • @PlayerBush001
      @PlayerBush001  Před 2 lety +2

      Client side. To make it networked, you would need to send a custom event, or change a synced variable

    • @akira8813
      @akira8813 Před rokem

      @@PlayerBush001 Is there a chance you could create a short video on how to convert this to a Networked Button?

  • @Ghostie290
    @Ghostie290 Před 9 měsíci

    Hello I absolutely love your tutorial. I was wondering if you could make a video showing how to make and admin teleport door. So instead of hiding and unhiding a room it just teleports you to the place you want if you are admin. I have a hard time picking up things so explaining over a video and seeing it visually would be so helpful!

    • @PlayerBush001
      @PlayerBush001  Před 9 měsíci

      See pinned comment ^^

    • @Ghostie290
      @Ghostie290 Před 9 měsíci

      Ohhhh I just figured it out thank youu!! Your videos are also and very helpful and easy to follow. I appreciate all your uploads thank youuu!@@PlayerBush001

    • @Ghostie290
      @Ghostie290 Před 9 měsíci

      @@PlayerBush001 Can I put the players Display name or does it have to be there original Username?

    • @PlayerBush001
      @PlayerBush001  Před 9 měsíci +1

      @@Ghostie290 it has to be their display name, which is the name every player sees. Would be a bit of a security problem otherwise

    • @Ghostie290
      @Ghostie290 Před 9 měsíci

      @@PlayerBush001 alright thank you!

  • @Youngee3000
    @Youngee3000 Před 11 měsíci +3

    something else i wanna say is when a person is not an admin, he cant play the animation again.

    • @PlayerBush001
      @PlayerBush001  Před 11 měsíci

      your animator is likely set up, so that it can never loop back to the start of the animation. All this code says is to fire a trigger, which allows for a transition to happen. If it's waiting for that trigger to play a transition, then nothing will happen

    • @Youngee3000
      @Youngee3000 Před 11 měsíci +1

      @@PlayerBush001Thank you.

  • @ChristianPerspective77
    @ChristianPerspective77 Před 4 měsíci

    Kia Ora. Is there a way to create an object where only admin can walk through it but it will block anyone else? Like a stage blocker?

    • @PlayerBush001
      @PlayerBush001  Před 4 měsíci

      sure.
      I use an animation in this tutorial, but an animation can be more than just moving an object, so you could just use a different animation. So, instead of the animation making the door turn, you can make it (or multiple child objects) disappear or something.
      You can also change the 'event, interact' node in the script with an 'event, start' node; and then it will do the check if you are an admin when the game beings; instead of when you click the object
      Hope that helps ^^

  • @kobakiju
    @kobakiju Před rokem +2

    Is there a way that you can populate adminNames from an external URL?

    • @PlayerBush001
      @PlayerBush001  Před rokem +1

      Unfortunately, you can only use external urls to get videos. Anything else is against TOS, and udon will try it's hardest to stop you.
      That being said, you don't have to re-upload the world to update a list. It's a little advanced, but there is an asset that "Allows you to encode text into images and then read it in VRChat. Uses Avatar Thumbnail Images to store and load images. Works on both PC and Quest." (github.com/Miner28/AvatarImageReader), and this is used by many of the bigger creators to keep patreon lists and the likes up to date. Also seen it used to do seasonal events like christmas and whatnot, without having to update the world (pretty sure black cat does this). It does require you to make an avatar for it instead of being an url (though the avatar can be super basic like a cube) but it's a good workaround
      Hope that helps ^^

  • @aplejuus7247
    @aplejuus7247 Před rokem +1

    im not getting the public ones, all it says is text placement and i don't know how to fix it
    please help

    • @PlayerBush001
      @PlayerBush001  Před rokem

      In the graph, go to the variables tab (or side bar as it is now) and hit the little dropdown menu, and checkmark 'public'. Do that for all variables that need to be public.
      Also, as only changing this setting won't cause it to auto compile, you will need to go to the top right, and click on the 'compile' button
      Hope that helps ^^

  • @UntoldBeenHavin
    @UntoldBeenHavin Před 2 lety +3

    can you do this without animations like you can just press the button and it teleport u to the vip room

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      Yup. Grab the true arrow from the bottom branch node, and instead of plugging it into a 'gameObject, set active' node, plug it into a 'playerApi. Teleport to' (networking. Local player) node.
      If you need some reference for how to use that node, have a look at my tutorial on how to teleport a player: czcams.com/video/ZcwdAgZywDQ/video.html

    • @UntoldBeenHavin
      @UntoldBeenHavin Před 2 lety

      @@PlayerBush001 do I have to still do the anim step

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      Nope ^^

    • @UntoldBeenHavin
      @UntoldBeenHavin Před 2 lety

      @@PlayerBush001 its not working for me i feel like i did something wrong do you think you can join a discord call with me for a few mins please

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      If your in the official vrchat discord, if you post an image of your code in 'udon-questions' and @me, I'll take a look

  • @Youngee3000
    @Youngee3000 Před 11 měsíci +1

    the door wont do anything in vrchat. im logged in to the right account, I put my display name, and it wont let me in anyway. im using your teleport method. I also used this method and it wont work :(

    • @PlayerBush001
      @PlayerBush001  Před 11 měsíci

      Okay, first thing to check, is whether or not you are being treated as a non-admin, or the script is broken. Where I added the teleport if admin, create the same for non-admin too (the false from the bool), but get it to teleport to a different location. If you get teleported to the non-admin location, then we know that that is the problem. Also as a sanity check, check that other non admins aren't getting sent to the admin location, by asking a friend to try or something.
      Once you know that it just isn't seeing you as an admin, this will narrow down what is wrong. The biggest thing to check is that you haven't got any rouge spaces or have things that are capitilsed differently. Also, if your using a non vrchat account, make sure it has the string of numbers at the end, as that is part or your display name.
      If rhst doesn't work, then perhaps your coding is wrong. One thing I could think of is perhaps you forgot to set the bool to be true if it finds you an admin. Other than that, I recommend asking on the vrchat discord under their 'udon questions' channel for more help, as there you can post pictures of your code.
      Hope they helps ^^

    • @Youngee3000
      @Youngee3000 Před 11 měsíci +2

      @@PlayerBush001 I finally got it! Thank You so much :)

  • @normioffi
    @normioffi Před měsícem

    How to make it work with group roles? I think it's not possible right??

    • @PlayerBush001
      @PlayerBush001  Před měsícem

      I... Don't think so? That information would need to be exposed in udon, and I cant remember any call backs being provided. I also haven't had a need for it, so I am unsure. Perhaps ask on the official discord, or request it as a feature on the canny

  • @mintzoeygames
    @mintzoeygames Před 2 lety +2

    how do you make it only flash green or red?

    • @PlayerBush001
      @PlayerBush001  Před 2 lety +1

      You would just wouldn't animate the door moving part. To make the door change colour; on the object itself, if you scroll to the bottom of the inspector, there is a dropdown for the material that is currently on the object. You can animate the colour there, and that will allow you to animate the colour of the object (or other material properties).

    • @mintzoeygames
      @mintzoeygames Před 2 lety +1

      @@PlayerBush001 Awesome thanks so much

  • @catflix4213
    @catflix4213 Před 4 měsíci +1

    Tutorial sounds kiwi

  • @yoihadtochangethisitsstill2634

    How would I make it so I could use Github Gist for the admin list?

    • @PlayerBush001
      @PlayerBush001  Před 3 měsíci +1

      Vowgan did a video showing basically this. I would recommend watching his video ^^

    • @yoihadtochangethisitsstill2634
      @yoihadtochangethisitsstill2634 Před 3 měsíci

      @@PlayerBush001 Do you know how to connect Patreon to GitHub gist or pastebin so it would automatically update the list? I wanted to incorporate members only door in my world.

    • @PlayerBush001
      @PlayerBush001  Před 3 měsíci +1

      @@yoihadtochangethisitsstill2634 if you learn how, I would love to know. I currently do it manually myself

  • @ftkirito6304
    @ftkirito6304 Před 6 měsíci

    How might i do this so its only pickupable by admins?

    • @PlayerBush001
      @PlayerBush001  Před 5 měsíci

      Create a public pickup variable call 'target pickup'. Then, looking at the graph, delete everything coming out of the second arrow of the block node; and replace it with a 'pickup, pickupable' node. On this new node, plug our public variable into the instance slot, and our 'is admin' variable into the value slot. Now the script will make whatever our pickup object is, only work for those that are an admin.
      If you want to make the script disable/enable multiple pickups, use a pickup[ ], and follow my video on how to call multiple objects in an array
      Hope that helps ^^

    • @ftkirito6304
      @ftkirito6304 Před 5 měsíci

      thanks
      @@PlayerBush001

  • @jakedothings
    @jakedothings Před 2 lety +1

    can it work to getter with the object follow player

    • @PlayerBush001
      @PlayerBush001  Před 2 lety

      yes, you can, but it might be more difficult than you'd like.
      If you just want it to follow a particular admin that hits a button, you can just create a button that, instead of getting it to play an animation, you can instead change the owner of the follower object to follow you instead (if you are an admin, and you click the button). Check out my teleport version of this script, to see what's need for the admin check part of the code: czcams.com/video/n1-bf2KnfU4/video.html
      However, I get the feeling that you are instead after an object to follow every player that is an admin. That is... a bit more of a pain, and really would be it's own video. In essence, you need to see if the new player that joined the world (onPlayerJoin) is an admin, and if so, tell an object pool to spawn in a new object; and change that object's owner to be the new player. Then, when a player leaves (onPlayerLeft), check if they they were the owner of any of the objects in the object pool, and get it to return the object to the object pool, if so.
      As for the objects in the object pool, they would just need to be an object with the second version of the player follower script (aka, the networked version shown last).
      That being said, there really isn't a good tutorial out right now on object pools, other than a brief example in one of vowgan's videos (the one I used to figure it out), so it may be best to ask for some help on the official vrchat discord's 'udon-questions' channel, to get some picture help
      Hope that helps ^^

    • @jakedothings
      @jakedothings Před 2 lety

      thx i maybe weird to say but if you have a patron i wood most likely want to subscribe to it it will help most people and maybe you as well in all the words i like your work and i need some help trying to make a game with no codes is really out there

    • @PlayerBush001
      @PlayerBush001  Před 2 lety +1

      I don't currently monetise anything I do, mainly as I want to focus on making good content in a sustainable way (aka, no burnout or anything), before getting any money involved. I plan to look into possible monetisation stuff once I can monetise this channel. But until then, I'm just going to focus on learning to make cool and interesting stuff ^^

  • @taco_boi
    @taco_boi Před rokem +2

    I have a question, is there a way to do it with a playerID instead of display name?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      nope, as playerID is relative to the world, not a players account. A player's Id is just a counter that goes up by 1 for every player that joins a world. The person who first enters the world gets a player ID of 0, the next player gets an id of 1, etc.
      One good use of playerID is to sync playerApi variables; as they can't be synced. Basically, you can get a player's id with 'playerApi, get PlayerID', and then set a synced int to have that value. Then when others see that int change, you can put it through a 'playerApi, get player from ID' node, and get the playerApi out again.
      Hope that clears it up ^^

    • @taco_boi
      @taco_boi Před rokem

      @@PlayerBush001 Yeah, that helps, but what does it mean by "display name"? Because my name has weird characters and I put it in and it didn't work.

    • @PlayerBush001
      @PlayerBush001  Před rokem

      @@taco_boi display name is the name that vrchat displays to all users.
      I'll be honest, I've yet to test it with any players with special characters, but if you could give me your vrchat name, i could run a test and see

    • @taco_boi
      @taco_boi Před rokem

      @@PlayerBush001 Okay, it's: ᴋe̸l. You might need me for the test though lmao.

    • @taco_boi
      @taco_boi Před rokem +1

      nvm I got it, I forgot to set active when you ARE admin my bad😅

  • @lrfvrchat
    @lrfvrchat Před 2 lety +2

    Where's the Block node if I may ask?- Nevermind thanks!

  • @sergent_granite
    @sergent_granite Před rokem

    in udonsharp ?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      udon graph works the exact same as udon#, it just looks different. Here's the conversion, with a couple of really minor improvements with the extra flexibility of sharp
      [SerializeField] private string[] playerNames;
      [SerializeField] private GameObject adminRoomObj;
      [SerializeField] private Animator anim;
      public override void Interact()
      {
      bool isAdmin = false;
      for (int i = 0; i < playerNames.Length; i++)
      {
      if (playerNames[i] == Networking.LocalPlayer.displayName)
      {
      isAdmin = true;
      }
      }
      adminRoomObj.SetActive(isAdmin);
      if (isAdmin)
      {
      anim.SetTrigger("isAdmin");
      }
      else
      {
      anim.SetTrigger("isntAdmin");
      }
      }

  • @roxythefallenangel6804

    Nvm i found it (bush did the bool stuff change?)

  • @andresca1985
    @andresca1985 Před 6 měsíci

    amazong!, now... what if are some special players... some players... around 4 or 5 can access that private room... how can be?

    • @PlayerBush001
      @PlayerBush001  Před 6 měsíci

      If you add more names to the array, then they will also be able to enter the vip door. Or, are you asking how to let some of your friends (who are not vip) enter the room if you are vip? That would be harder, but do-able

    • @andresca1985
      @andresca1985 Před 6 měsíci

      @@PlayerBush001 wow master, so fast answer.. thanks so much... ok. my idea is. what if i press a code to be like admin and invite friends that private room, is the same room, but different code, then is the same room, but different group, then that room will be other same room. that is possible? like duplied.. because i am using other code

    • @PlayerBush001
      @PlayerBush001  Před 6 měsíci +1

      @@andresca1985 possible, yes, but a little hard to explain via text. Basically, you want to have a button that when clicked, makes you the owner of the button. Have a synced bool on the button called 'occupied' and make it true when the owner is in the room. When that bool changes to true, toggle on an input box, where people can type into. Then inside the room, have anothee input box, that when the owner types into, sets a synced string. If a player types into the outside box the same as the synced string, make the button activate able. If not, deny them access.
      So yea, a little hard to explain, but hopefully that shows where to start looking ^^'

    • @andresca1985
      @andresca1985 Před 6 měsíci

      @@PlayerBush001 yes, you can do videotuto jajaj

  • @Nesper_z
    @Nesper_z Před rokem

    Whats the gMe

    • @PlayerBush001
      @PlayerBush001  Před rokem

      This is for vrchat, a social vr platform where you can make small games and experiences, and share them with the community. Has a desktop mode too

    • @Nesper_z
      @Nesper_z Před rokem

      @@PlayerBush001 sign me up

  • @cadendavis3781
    @cadendavis3781 Před rokem

    Did everything exactly the same twice and still didn't work, disappointing.

    • @PlayerBush001
      @PlayerBush001  Před rokem

      I recommend looking at my video 'how to debug your code' to get a better idea of how exactly it is failing. Could be a wrong node, could be a wrong name, could be something not linked up right.
      Need to know more about how it's not working to help

    • @cadendavis3781
      @cadendavis3781 Před rokem

      @@PlayerBush001 Is it possible to create an admin only teleport button?

    • @PlayerBush001
      @PlayerBush001  Před rokem

      @@cadendavis3781 see pinned comment ^^

    • @cadendavis3781
      @cadendavis3781 Před rokem

      @@PlayerBush001 That actually works, thank you so much!