Re: How do I generate RANDOM teleport destinations???


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

Posted by BrianL on June 09, 1998 at 21:46:09:

In Reply to: How do I generate RANDOM teleport destinations??? 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...

Send an email to Booto, who has written a few cog tutorials for us. I know for a fact he knows how to do it because he did a cog that would teleport you to one of 10 random points (they were ghost things).

Brian


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 ]