NPC Code: if (playerenters) timeout=.05; while (timeout) { actions... sleep .05; }
if (playerenters) timeout=.05; while (timeout) { actions... sleep .05; }