Quote:
Originally posted by marcoR
ok... i'm no scripting genius, heck, i can barelly make a door 
but wouldn't it look like this?
NPC Code:
timeout=0.5;
if (timeout && playercount>5){
do something;
timeout=0.5;
}
but I don't know, i've never used player count, and heck, i suck at scripting..
|
Don't declare flags/variables etc. outside of code blocks. In addition, do not have an event check and a conditional check in the same if (statement). I suggest defining timeout in playerenters.