So I’m making a sorta of amongus type game, and I want it so when you press a button, it randomises a player and puts it into a popup that appears on the player who pressed the button’s screen, but not the random player* and I can’t seem to get the random player property/variable/relay/I really have no idea into the whole thing. . .
*I’m using it like a simplified voting system where it asks you “is this the player?” and randomises a player and you say yes or no using call to action. If you were to press it again it would show a different name.
Ok so the first one is basically what I did, with a few tweaks to make it fit with my map, but I still can’t get it into the pop-up. The second one I tried before I decided voting was too hard for me, and it wouldn’t work for some reason, so really I think the problem is that I don’t know how to get the random player into the pop-up itself.
Give each player an ID. Then, when the button is pressed, choose a random number using a trigger, between 1 and the “Num Players” property. Then, using a relay, have everyone check with triggers if their “Player ID” equals the number chosen. If so, change their team.