Quote:
Originally Posted by drekes
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.
__________________