WaterController::AddWaveGenerator
Defined in:
Adds a wave generator to a water controller.
C4Water.h
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