View Single Post
  #8  
Old 04-19-2006, 06:59 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote