Quote:
|
Originally Posted by ZeLpH_MyStiK
But modulus allows you to have more than 2 switch modes.
i.e.
NPC Code:
this.switch = (this.active + 1) % 3; // <-- 3 switches!
this.switch = (this.active + 1) % 4; // <-- or 4!
|
But negating the value of a boolean only allows you to have two modes, so I don't know why you're preaching modulus!