Well, I have looked around for weeks and I can't find anything on the wiki to help me with this. I want some kind of function/hook to check if the ent has touched a trigger on the map.
use this
[b][url=http://wiki.garrysmod.com/?title=Ents.FindInBox]Ents.FindInBox [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Example
[lua]
for k,v in pairs(ents.FindInBox( Vector(-32,-32,-32), Vector(32,32,32))) do
print(tostring(v) .. " Is Inside The Box")
end
[/lua]
Do I have to set vectors or can I just check if it is in the trigger that is placed on the map.
Use a ShouldCollide hook, make sure you don't return anything.
Sorry, you need to Log In to post a reply to this thread.