#how do i give and take roles from people via a laserpointer?

1 messages · Page 1 of 1 (latest)

surreal elbow
#

how do i make it so someone gets a role by touching the laser, but gets it removed if they touch it a 2nd time?

hearty spear
#

Use the Raycast

surreal elbow
#

may i ask uhh how do i use that?

short shoal
#

Panda_Lurk_wave
@surreal elbow
So, couple of things to note:

  1. You want to replace the rec room object variable with the laser gadget itself and use the yellow port on the top right corner.
  2. The laser might actually be pointing up, instead of forward. If that's the case use get up vector instead of get forward vector

With all that out of the way, you can use a event receiver(Update 30hz) as the input on the first if chip.
You'll want to put the name of the role as the string input of the player has role, player add role, and player remove role chips.
RRthumbup

The program I used has a bug with multi wires, so I couldn't wire the player input on the role chips, but you could do that in game. Use the player output on the raycast chip

#

Sorry bucket 😅

stable cape
surreal elbow
#

oh damn that is actually super easy to read

#

thanks alot ill try that now

stable cape
hearty spear
#

Should this not be flipped the other way?

short shoal
#

yes

#

😭 I'm playing lethal at the same time

stable cape
short shoal
#

rn 962

stable cape
#

Bro focus up don't be playing

short shoal
hearty spear
short shoal
#

It's outdated, so not everything we have ingame is there.

stable cape
#

We need a circuits people game of Lethal

short shoal
#

That's like, maybe over a year and a half old now

Edit: I'll talk more about it in #circuits if you need help with it

stable cape
surreal elbow
#

okay so i made the circuit in-game and it works fine ,but slight issue, the roles spam switch if you stay in the laser. is there a way to fix that?