HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to pick a random room

02-26-2003, 01:03 AM#1
iceslushee
i have come upon a bit of a hurdle in my triggering what i proposed was to have 5 seperate rooms but only one of them may have the entrance to the next room. One room needs to be randomely chosen to take you to the next room, so what i did was make a variable of an integer then i made a trigger that said set this int as a random number between 1 - 5 now i've created a text message to test that it picks random numbers but it keeps comin up with 5 i know im doin somethin wrong coz i've made trigs just like this b4 but im tired and not concentrating please relieve my troubled head with some answers
02-26-2003, 01:14 AM#2
DaKaN
if you use "test map" i belive the random numbers are allways the same.
02-26-2003, 02:22 AM#3
Ari
The same effect happens if you've entered cinematic mode before this.
02-26-2003, 04:54 AM#4
Aiursrage2k
Try to call the random function within your region array.
Example: udg_region[GetRandomInt(0, 4)]