Raised This Month: $ Target: $400
 0% 

Find all brushes in a map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 06-02-2010 , 10:56   Re: Find all brushes in a map
Reply With Quote #1

Quote:
Originally Posted by drekes View Post
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
You can, at plugin_init, iterate over all entities (from glb_maxClients+1 to glb_maxEntities). Check if it's a valid entity and then do whatever you want (store in array, print out info, etc).

You can get entity class using pev_classname.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode