random texture on start.

Posted By: PlaystationThree

random texture on start. - 11/07/08 00:32

I'm having some problems figuring out a way to make a model take on a random texture on start. Any suggestions?
Posted By: Quad

Re: random texture on start. - 11/07/08 00:37

action randomskin(){
random_seed(0);
int a = randomize(100);
my.skin += a%3;
}

your entity must have 3 diffrens skins, one of them randomly gets aplied.
Posted By: Uhrwerk

Re: random texture on start. - 11/07/08 03:31

Code:
action randomskin()
{
  my.skin = 1 + random(ent_skins(me));
}

Posted By: PlaystationThree

Re: random texture on start. - 11/10/08 04:01

Thanks guys. I'll try that our immedeately.
© 2023 lite-C Forums