#Random Teleport

1 messages · Page 1 of 1 (latest)

frosty aspen
#

how do i make that when someone presses a button that he gets teleported at random vectors

noble peak
#

Do you already have vectors set up

latent burrow
#

If you want them to be teleported to a random position, you want to get the position of one point (one corner of the map) and another point (other corner of the map) and then you want to split the vectors and have a random float for each point (excluding y) in between the two points and then create a new vector3 for that position

So if one corner is -20 10 100, and another corner is 30 10 20, then I want to split both of their vectors and get a random float from between -20 and 30, and 20 and 100, and create a new vector and set position of player who pressed button

frosty aspen
#

@latent burrow can you explain me that again but a little better bc i cant speak englisch very vell

noble peak
#

If you put them all into a list create the use a random from list

#

Then use get position from the output and use that as the position on set position

cold nexus
noble peak
#

That way is a random position inside a area

#

If you use pre build points with vectors

#

Then use the random from list

cold nexus
#

Ik