AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Water "stuff" (https://forums.alliedmods.net/showthread.php?t=20197)

LynX 11-03-2005 14:25

Water "stuff"
 
When using:

Code:
new ent = find_ent_by_class(-1,"func_water") while ( ent ) { ent = find_ent_by_class(ent,"func_water") // do other stuff }

only on certain maps I can do stuff with water. In 4 maps, only on 2 I was able to do some stuff with water.
How can I do stuff on other maps with water ( I'm aiming on maps with big water surfaces ).

Thanks.

v3x 11-03-2005 15:26

Code:
new ent; while((ent = find_ent_by_class(ent, "func_water")) != 0) {   // blah }

LynX 11-03-2005 18:52

You sure this will work on any water surface no matter how big it is?

XxAvalanchexX 11-03-2005 19:02

As long as it is a func_water it will still be caught with this loop.

LynX 11-04-2005 05:17

Well, ok...
One more question. What other classnames can be for water or smthing like water/fluid/liquid stuff?

@ Avalanche - how come ur troll? 0o

XxAvalanchexX 11-04-2005 19:42

func_water is it

commonbullet 11-05-2005 00:01

not all the maps use func_water to make water surfaces.

In many maps the water surfaces are set by applying a water texture (signed by a ! prefix, i.e. !c2a53) into an ordinary world brush.


All times are GMT -4. The time now is 23:39.

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