|
|
|
| |||||||||||||||||||
Making a Valve raise and lower water in HL2![]() First we'll create Outputs for the func_water_analog. This is the Source entity used for water that can move. Next Double-click on the func_door_rotating or select it and press Alt+Enter. Click on the Outputs tab at the top and then click the Add button on the bottom. Add the outputs shown here:
As you see when we open the func_door_rotating, which will also turn the wheel, our func_water_analog will Open, or rise in this case. And when we close the func_door_rotating our water will lower.
You can experiment with the settings for each of these functions, some of which are speed and sounds. Update: There are two materials in the Source SDK that can be used with func_water_analog, nature/water_movingplane and nature/water_dx70. These must be used for the water to function properly. I've created a sample project with 17 func_water_analog bodies of water, each with its own material. The bodies of water in the sample, (vmf and bps are included), raise and lower. Some other materials will look fine of the surface but if you get in the water, crouch down and try to look out you won't be able to with the others, only the two listed here appear to function properly.
|