my code is in a function to randomly play any 1 of 3 movies clips:
random_wlcm = integer(random(3));
if (random_wlcm == 0)
{
media_play("I_wlcm1.avi",NULL,100);
}
if (random_wlcm == 1)
{
media_play("I_wlcm2.avi",NULL,100);
}
if (random_wlcm == 2)
{
media_play("I_wlcm3.avi",NULL,100);
}
wait(-5);
The code works to some extent...
If I <tab> onto the console and change the random_welcm variable, it will play the correct file.
However; during gameplay, this code ALWAYS plays the same movie. I know its a 1 in 3 chance every time, but it ALWAYS plays the same one.
Any thoughts??