C4 Engine
C4 Engine API Documentation

WaterController::AddWaveGenerator

Defined in:  C4Water.h
Adds a wave generator to a water controller.
Prototype

void AddWaveGenerator(WaveGenerator *generator);

Parameters
generator The wave generator to add.
Description
The AddWaveGenerator function adds a wave generator to a water controller. The wave generator begins running the next time the water controller is moved, and it continues until it indicates that it is finished or until the wave generator is removed with the WaterController::RemoveWaveGenerator function.

If a wave generator is nonpersistent, then it is automatically destroyed by the water controller when it finishes running.
See Also

WaterController::RemoveWaveGenerator

WaveGenerator