SOLVED - Random script help pls

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

SOLVED - Random script help pls

Post 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.
Last edited by Drakkan on Tue Jan 15, 2013 11:41 pm, edited 1 time in total.
Breath from the unpromising waters.
Eye of the Atlantis
Ixnatifual

Re: Random script help pls

Post 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.
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Random script help pls

Post 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
Breath from the unpromising waters.
Eye of the Atlantis
Post Reply