Page 2 of 2

PostPosted: Wed Aug 08, 2007 11:50 am
by Zehper48
what is the code to make randomly create 2 actors, like 50% chance actor 1 and 50% chance actor 2?

PostPosted: Wed Aug 08, 2007 1:08 pm
by makslane
Try this:

Code: Select all
if(rand(100) > 50)
{
  //Create 1
}
else
{
  //Craete 2
}