Author Topic: How do you setplayertransform to random bricks under the same name?  (Read 417 times)

Let's say, I add multiple bricks called "stuffstain". I want a player who activates a setplayertransform to stuffstain to randomly setplayertransform at one of the stuffstains rather than setplayertransforming to the last stuffstain i place. How do I do this? Is it possible?

Let's say, I add multiple bricks called "stuffstain". I want a player who activates a setplayertransform to stuffstain to randomly setplayertransform at one of the stuffstains rather than setplayertransforming to the last stuffstain i place. How do I do this? Is it possible?
Well, you could set up a fireprojectile event, then each of the bricks it could randomly hit have a different seteventenabled to the brick that causes the teleport, thus simulating a different teleport each time. If it's only going to be used once then you could get the fireprojectile event to fire before stepping on the telebrick.

This won't be using the same name though sorry.