10.08.2009, 10:31
Why don't you just make like:
new RND;
RND=random(sizeof(Xcoords));
CreatePickup(model,type,Xcoords[RND],Ycoords[RND],Zcoords[RND]);
Or for smaller sys
new RND
RND=random(TOTALnumberOFrandomOptions)
switch(RND)
{
case 1:CreatePickup(model,type,X,Y,Z);
case 2:CreatePickup(model,type,X,Y,Z);
case 3:CreatePickup(model,type,X,Y,Z);
}
new RND;
RND=random(sizeof(Xcoords));
CreatePickup(model,type,Xcoords[RND],Ycoords[RND],Zcoords[RND]);
Or for smaller sys
new RND
RND=random(TOTALnumberOFrandomOptions)
switch(RND)
{
case 1:CreatePickup(model,type,X,Y,Z);
case 2:CreatePickup(model,type,X,Y,Z);
case 3:CreatePickup(model,type,X,Y,Z);
}