Quote:
Originally Posted by R0bin
NPC Code:
NPC Code:
if (created||timeout) {
this.npc=testnpc(mousex,mousey);
if (this.npc>-1) {
showtext -10,npcs[this.npc].x+1.5,npcs[this.npc].y-1,,c,#v(this.npc);
} else hideimg -10;
timeout=0.05;
}
|
What's the point of negative indexes? I have noticed that you use negative indexs often.