So i have this game overlay,so when you press it, I want a chance to spawn this wooden chair prop,but it could spawn in 3 different places.
Do you know if this is possible?
So i have this game overlay,so when you press it, I want a chance to spawn this wooden chair prop,but it could spawn in 3 different places.
Do you know if this is possible?
could i see what you have so far?
Button pressed - block code to activate a random channel - deactivates the current prop and activates the new one.
I think that’ll work.
yeah.
so i got this game overlay with these settings:
but the props aren’t active on game start.
only when you press the button do they spawn.
ok,
button pressed → randomizer
randomizer → randomizer
second one spawns chair
the first one is like a check and the second is well… a double check
im kinda confuzzled rn ;-;
could you like pull it up in images for me?
In the game overlay have it broadcast a channel when it’s clicked, then in a trigger make it trigger when it receives that broadcast. Inside the trigger make a block. In that block create a variable called Chance. Set Chance to be a random number between 1 and 3 (you can do this with the pick random integer from _ to _ block found in the math tab). Then can an if block with one if statement and 2 else if statements. In the if statement check if Chance is equal to 1 (in the else if statements check if Chance is 2 then 3) then boardcast a message on channel to deactivate the 3 chairs and then broadcast a message on channel to activate the first chair (repeat for the else statements deactivating all chairs then activated the second, then the third). In the chairs make them all deactivate when they receive the broadcast from the trigger to deactivate them. Then in the first chair make it show when it receives the broadcast from the trigger to activate the first chair (repeat for the other chairs but changing the broadcast it takes to show to whatever you made it in the trigger). Sorry that these instructions aren’t formatted hope you can still understand it.
i kinda quit gimkit… haven’t played it in a while
i’m just explain
overlay button pressed → randomizer
randomizer guide:== The Ultimate Randomizer Guide == (Difficulty: 🟩)
that randomizer has the chair channels that makes the chairs appear or disappear. however you want it.
i was doing pretty good
but
this is where i got lost.
Here pictures for it:
Step 1: broadcast channel when game overlay clicked
Step 2: make a trigger trigger when receiving broadcast (also make trigger not visible in game and not triggered by player collision)
Step 3: write the block code for the trigger
Step 4: Make chair appear and disappear when receiving broadcasts (and make all chair not visible on game start)
Hope this helped!
Ok. Get 3 chairs.
Have them ALL inactive on start. When the overlay is clicked. RANDOMIZE a number between 1 and 3. BROADCAST that number. EACH chair will activate on said number
1 then 2 then 3
Helpful?
We could shorten the code. I don’t wanna post a picture so I’ll just use format code. Please be smart enough to understand it.
`set Chance to` random integer from 1 - 3
broadcast message on channel 'chance'
amazing!
POWER OF CONCATENATION
I understand thanks for pointing that out
Just a tip, the only thing that doesn’t work with what you said is that you have to deactivate all the chairs before activating them each time you click or else you’d have multiple activated at the same time
alright, so i got that part to work.
(Sorry i didn’t mention this earlier,) but could we make like a global notification that says:
“A chair has been spawned!”
and shows the coordinates like how far away the chair is?
also i want it so when the player walks up to the chair, it puts them in the chair,and they are unable to be hit OR hit other players when in the chair, and it deactivates like 10-15 seconds after a player sits in it.
ALSO
(Sorry)
i want the button to have a 30 second cooldown when pressed.
definitely! give me a second and I’ll send some pictures on how to do it
Ego slashed. Rejects statement
Reads through again
Realizes mistake
Ego EMOTIONAL DAMAGE CRITICAL
Ah, I see. An easy fix for that would just be instead having all the chairs sharing the same broadcast to deactivate them all. Put that broadcast at the beginning of the code and you start a new! Thanks for pointing that out.
You could use either notifications or pop-ups, and isn’t there an activity feed? You can place text in it withing the code.
Also you could put a zone under each chair, (zones activate on the same broadcast as the chair and the global deactivation for the chairs) and when the player enters, put a barrier on them to trap them. MUAHAHAHAHA. Use a trigger loop with a dealt of 1 for a counter set to 15 to decrement it and when it reaches 0, deactivate the barrier.
I’m going to give instructions for the first part I’ll tell your how to the other part next (it’s a little more complicated)
Step 1: add a notification device and set it’s properties to these (you can change it’s appearance and duration in the all options tab)
Step 2: add waypoint devices on top of each chair and make them all not active on game start
Step 3: input these properties into the waypoints (you can customize the waypoints anyway you like ex. add a waypoint name or deactivate when player get in range of it)
That was how I was going to solve the second it. gadgets can’t fire through barriers so it’s a perfect solution. The only thing I think you need to add is a speed modifier because if you activate a barrier on top of a player then the player can’t still move to get out of the barrier.