Thread: players in room
View Single Post
  #7  
Old 08-21-2003, 06:32 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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.
Reply With Quote