- Home /
Question by
Orloffyeah · Jul 29, 2013 at 01:49 AM ·
chance
How to Make Probabilties in Script?
Hi, what I mean with this is for example to make that an event happens with certain probability. For example:
public bool Active = false;
void OnTriggerEnter()
{
15% chance Active = true;
}
Something along those lines, is there some way to make it?
Comment
Your answer
Follow this Question
Related Questions
Loot Drop Chance 3 Answers
Clean way for percentages 0 Answers
AI Script attached to Enemy and is Rotating around player 0 Answers
Script Problems 1 Answer
Respawn script and door animation help 0 Answers