View Single Post
  #11  
Old 08-22-2003, 12:27 AM
KainDaMan KainDaMan is offline
Registered User
Join Date: Jul 2003
Location: Virginia,USA
Posts: 51
KainDaMan is on a distinguished road
Send a message via AIM to KainDaMan
timeout is not a loop unless you make it a loop

NPC Code:

if (playerenters) {
timeout=5;
}
if (timeout) {
message #n sucks!;
}


This accomplishes the same thing as
NPC Code:

if (playerenters) {
sleep 5;
message #n sucks!;
}


but at the same time, isn't a loop.
Like Kiirar said above, timeout is litterally a countdown
the command
NPC Code:

timershow;


does the equivelent to message of the time it has until the timeout event is called
__________________
---Kain Morbid
Reply With Quote