SC_GetSoundNumber

Usage

int SC_GetSoundNumber( string &EffectName)


Summary

Gets a sound number from a sound effect filename.


More Information

EffectName is the wave filename relative to the base\sound folder and contains no number or ".wav" suffix.

Sounds with the name name but different number suffixes are randomised automatically.
For example: boom.wav, boom2.wav and boom3.wav are referred to as "boom".

Use \\ instead of \ in the filename string when specifying folder names.
For example "contact\\boom".


Example

int ExplodeSoundNumber;
ExplodeSoundNumber = SC_GetSoundNumber("contact\\explode");


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 by James Bunting
www.jbgames.com/games/rod3d/

This page was automatically generated by jbgames Script Docs Generator