How do I generate RANDOM teleport destinations???


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Day Trooper on June 09, 1998 at 18:47:07:

Hi! Please help me!

I want to create a teleport cog which will teleport a player who enters the teleport sector to one of 10 predetermined locations in my level.

I have already got the teleport feature working, but I can't figure out how to use RAND() to randomly determine where the player ends up (in the COG I would enter the 10 destination things, and I want to somehow use RAND() to randomly determine which thing is chosen for the player's teleport destination.) This is possible, right?

BTW, can I use XYZ coordinates for the destination as opposed to a thing #?

Many thanks in advance...


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]