How would I find a player close to an entity with findInBox?
2 replies, posted
So how would I check if a player is close to an entity? If I can find a player with findInBox, what would the two vector values be?
(Here's what I'm referencing)
ents.FindInBox( Vector boxMins, Vector boxMaxs )
Hello
BoxMin is the minimal box location, and boxMax the maximum.
You should use ents.FindInSphere() with two arguments : first is vector location of the center of the sphere an second is an int, Radius of the sphere.
Okay, I'll try it out!
Sorry, you need to Log In to post a reply to this thread.