• can someone explain "Ents.FindInBox" for me?
    7 replies, posted
[url]http://wiki.garrysmod.com/?title=Ents.FindInBox[/url] [LUA] local orgin_ents = ents.FindInBox( Vector(-32,-32,-32), Vector(32,32,32) ) [/LUA] why is there 2x "Vector(number,number,number)" ? what do they mean? /Thanks IT SAYS "can someone explain "Ents.FindInBox" for me?" but i ment "can someone explain "Ents.FindInBox" to me?" sorry
The first vector is the start of the box and the second is the end of the box.
like this? [IMG]http://i56.tinypic.com/549e1d.png[/IMG] ||| pos 1^
Yeah, that's it. Two vectors are all you need to find out everything about the box (assuming it's not angled or something).
thanks johnny and wizard :)
Was just gonna create a new thread, but its somewhat alike to this question: What are the alternatives to Ents.FindInBox() if the is angled?
[QUOTE=freemmaann;27870245]Was just gonna create a new thread, but its somewhat alike to this question: What are the alternatives to Ents.FindInBox() if the is angled?[/QUOTE] Lots of "inrange"'es
If I'm not mistaken the 2 vectors are pos1 and pos2 on my picture. And yes I am god at paint. [IMG]http://i.imgur.com/GOyIP.png[/IMG] Make sure you are passing it world coordinates.
Sorry, you need to Log In to post a reply to this thread.