Quote:
|
Originally Posted by Yen
It treats them the same as un-prefix'd variables.
I can't really make the system detect them, because the player could be on a gmap with 1000s of NPCs.
You know how laggy that is. :P
|
Well, that's what was a problem with my movement system, and then stefan made findareanpcs(x,y,w,h) work for weapons so that I could detect NPCs. It's probably one of the most useful functions that stefan has made.
findareanpcs(x,y,w,h) returns an array of npc objects on x,y,w,h. Therefore you don't have to cycle through thousands of NPCs. He's been talking about doing a findareaplayers function, that will also be quite helpful.