Hi, i so i am making this gamemode, and i have a test map I've made and it has brush with the name "win_zone".
Now i need to know when a player collides with it. How would i do that?
I've tried ents.FindByName( "win_zone" ), but i cant seem to find it, and i have been searching over the forums and wiki for hours now :/
Help would be appreciated
sLysdal
You could create your own entity with a [b][url=wiki.garrysmod.com/?title=ENT.Touch]ENT.Touch [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] function, and use [b][url=http://wiki.garrysmod.com/?title=Entity.PhysicsInitBox]Entity.PhysicsInitBox [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] to make it a nice box, and after all entities have spawned put this nice box of yours at your nice win_zone
It's because that i have a brush in the maps for the gamemode, and i dont want to spawn that manually with lua for all the maps, so i presumed that you can get that entity somehow and hen take it from there?
[editline]03:40PM[/editline]
aahh, sorry, didnt understand what you said, ive made a custom entity now and it works, thats for the help :)
Sorry, you need to Log In to post a reply to this thread.