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