Thread: testnpc
View Single Post
  #4  
Old 01-16-2006, 09:44 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 ApothiX
Make the function yourself using getnearestnpcs() ..

I seriously think you need to stop making suggestion threads about stuff that is easy to script, and if it was a part of the language you would probably be the only person who would use it.
This isn't so easy as you think, that's the problem. I could do testnpc(x,y)... but only with a 1/16th check... which I wouldn't really advise to anyone making a custom movement system. True, if I used getnearestnpcs(), I could check the ranges given by this.x,y,width,height... wouldn't be quite so good though. It especially bothers me that I don't know how near getnearestnpcs() detects NPCs. I would want to avoid using it in anything but a damage system.

I might be the only person who uses it, but is your problem how well I would use it? I make functions that I think everyone should use. If this was easy to script, or didn't make sense with common functionality, I wouldn't have suggested it. I don't see what your problem is. You know, I'm sorry that I want to make the game more enjoyable and unique for players. Hey, I'd even let anyone use my movement system once it's done... That includes you. In fact it should be the envy of all movement systems

EDIT: owait, there is a getareanpcs function I could use.

Last edited by jake13jake; 01-17-2006 at 01:44 AM..
Reply With Quote