AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Finding ents by their texture (https://forums.alliedmods.net/showthread.php?t=98836)

orglee 07-29-2009 19:08

Finding ents by their texture
 
I found code like one below to find water on every map:
PHP Code:

// Find water on map and save its ids
    
new Ent engfuncEngFunc_FindEntityByString, -1"classname""func_water");
    while((
Ent engfuncEngFunc_FindEntityByStringEnt"classname""func_water")))
    {
        if(!
gWaterExists) { gWaterExists true;    }
        
gWaterEntities[Ent] = true;
    } 
// And later check in addtofullpack and hide with set_es() 

But since many water blocks on maps has only liquid texture, this way is insufficient. So how to fetch them all?


All times are GMT -4. The time now is 18:21.

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