random selection
#1

can someone tell me the basics of how to on a script when a person does a command once the next time it does another action thats different.
Reply
#2

you can use random(max) for this:

pawn Код:
switch(random(number_of_different_actions)
{
    case 0:
    {
        //Action 1
    }
    case 1:
    {
        //Action 2
    }
    //...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)