Chance of something to occur
#1

I'm currently working on a looting system and I want to limit the chance of rare items to be spawned. Can someone give me an idea of how to do so?
Reply
#2

pawn Код:
if(random(10) == 1)
{
    // 10% chance
}
Reply
#3

Thank you Vince! I already thought of using random just wasn't sure about it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)