Quote:
Originally posted by Saga2001
its probably better to do this, make it destroy before it leaves the level, if you don't the command is not run because the player executing the command is not on the level anymore.
NPC Code:
if (created||playerenters) {
timereverywhere;
timeout=.05;
}
if (playertouchsme&&strequals(playing,#s(etegg))) {
say2 You found it!;
setstring server.eteggwinner,#a;
destroy;
setlevel2 eteggprize.nw,30,30;
}
if (timeout) {
// you don't need timereverywhere more than once.
timeout=.05;
if (strequals(ended,#s(server.etegg)))
destroy;
}
|
ok would this prevent that enter lv thing??
thanks to all that try to help