Find all brushes in a map
Hi
I want to know if it is possible to find all the brushes a map has without making a while for all the entity names. I want to find every wall, door, box, just everything. I tried using a 0 index but that doesn't work. Thanks |
Re: Find all brushes in a map
Quote:
You can get entity class using pev_classname. |
Re: Find all brushes in a map
Could you make an example of it? I don't understand it very well.
|
Re: Find all brushes in a map
This is untested, but should work.
PHP Code:
|
Re: Find all brushes in a map
Thanks, i understand it now. I'll try it out.
EDIT: works on everything, except some walls, i guess the brushes that aren't an entity. Is it possible to do stuff with them to? |
Re: Find all brushes in a map
the "walls" you know mostly have no classname, only special walls are "func_wall"
|
Re: Find all brushes in a map
Quote:
i tried "" and "worldspawn", but it didn't worl |
Re: Find all brushes in a map
Are you sure that they're entities?
Try with this tool http://forums.space-headed.net/viewtopic.php?f=43&t=111 To list ALL entities issue the command "listent" at console |
Re: Find all brushes in a map
i'm pretty sure that they aren't entity's but just walls with no classname, like grimvh2 said. But is it possible to do stuff with those walls to? Like in this case render them?
Nice tool, gonna mess around with it now. |
Re: Find all brushes in a map
Quote:
|
| All times are GMT -4. The time now is 05:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.