Ok, I have two players on a level. Im using the following scrip:
if (created) {dontblock; timeout=0.05;}
if (timeout) {
temp.a = testplayer(x,y);
if (temp.a > -1){
toinventory flaggy;
}
timeout=0.05;}
The flag will apear only on the player who was on the level first, even if it is the other player touching the npc.
What am I missing?
Sorry for the likely stupid question.
EDIT: I can use timereverywhere so both will get the flag, but only the player touching the npc is supposed to get it.