Page 1 of 1

SOLVED - Random script help pls

Posted: Tue Jan 15, 2013 9:07 pm
by Drakkan
Hello scripters,
pls somebody help me ? need script this

I have plate on which is is teleport spawned for 1sec when plate is activated. What I need to do, is teleport each time RANDOMLY teleport to one of three given locations.

Re: Random script help pls

Posted: Tue Jan 15, 2013 10:51 pm
by Ixnatifual
Place 3 teleporters on the same spot, one for each location. Call math.random(1,3) to determine which teleporter to activate. Also activate a timer than deactivates all three after 1 second.

Re: Random script help pls

Posted: Tue Jan 15, 2013 11:41 pm
by Drakkan
Ixnatifual wrote:Place 3 teleporters on the same spot, one for each location. Call math.random(1,3) to determine which teleporter to activate. Also activate a timer than deactivates all three after 1 second.
Call math.random(1,3) thats it, thanks a lot