e2 docs sound - wiremod/wire GitHub Wiki
Sound
Index,
Duration,
Path)
soundPlay(Plays sound from the E2 chip. soundPlay(string Index, number Duration, string Path to File) (25 ops)
Index,
Duration,
Path)
soundPlay(Plays sound from the E2 chip. soundPlay(int Index, number Duration, string Path to File) (25 ops)
:soundPlay(
Index,
Duration,
Path)
Plays sound from an entity. soundPlay(string Index, number Duration, string Path to File) (25 ops)
:soundPlay(
Index,
Duration,
Path)
Plays sound from an entity. soundPlay(int Index, number Duration, string Path to File) (25 ops)
Index,
Duration,
Path,
Fade)
soundPlay(Plays sound from the E2 chip. soundPlay(string Index, number Duration, string Path to File, number FadeTime) (25 ops)
Index,
Duration,
Path,
Fade)
soundPlay(Plays sound from the E2 chip. soundPlay(int Index, number Duration, string Path to File, number FadeTime) (25 ops)
:soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from an entity. soundPlay(int Index, number Duration, string Path to File, number FadeTime) (25 ops)
:soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from an entity. soundPlay(string Index, number Duration, string Path to File, number FadeTime) (25 ops)
Index)
soundStop(Stops the sound stored at the string index and removes the entry (5 ops)
Index)
soundStop(Stops the sound stored at the integer index and removes the entry (5 ops)
Index,
Fadetime)
soundStop(Fades the sound stored at the first input's integer index in the second input's amount of seconds and removes the entry (5 ops)
Index,
Fadetime)
soundStop(Fades the sound stored at the string index in the integer input's amount of seconds and removes the entry (5 ops)
Index,
Volume)
soundVolume(soundVolume(string Index, Volume), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
Index,
Volume)
soundVolume(soundVolume(integer Index, Volume), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
Index,
Volume,
Fadetime)
soundVolume(soundVolume(string Index, Volume, FadeTime), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
Index,
Volume,
Fadetime)
soundVolume(soundVolume(integer Index, Volume, FadeTime), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
Index,
Pitch)
soundPitch(soundPitch(integer Index, number Pitch) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
Index,
Pitch)
soundPitch(soundPitch(string Index, number Pitch) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
Index,
Pitch,
Fadetime)
soundPitch(soundPitch(integer Index, number Pitch, number Fadetime) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
Index,
Pitch,
Fadetime)
soundPitch(soundPitch(string Index, number Pitch, number Fadetime) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
soundPurge()
Clears the sound table and stops all sounds (5 ops)
= soundDuration(
Sound)
soundDuration(string Path to File) Returns the duration of the sound. Note: If the server hasn't the file it returns 60 (5000 ops)
Index,
Dsp)
soundDSP(Sets the DSP effect for the sound at the index, then restarts the sound (5 ops)
Index,
Dsp)
soundDSP(Sets the DSP effect for the sound at the index, then restarts the sound (5 ops)
Index,
Level)
soundLevel(Sets the sound's level in dB, then restarts the sound. This affects how far away the sound can be heard. (5 ops)
Index,
Level)
soundLevel(Sets the sound's level in dB, then restarts the sound. This affects how far away the sound can be heard. (5 ops)
= soundDSP(
Index)
Returns the DSP effect for the sound at the index (default 0) (2 ops)
= soundDSP(
Index)
Returns the DSP effect for the sound at the index (default 0) (2 ops)
= soundLevel(
Index)
Returns the sound level in dB for the sound at the index (2 ops)
= soundLevel(
Index)
Returns the sound level in dB for the sound at the index (2 ops)
= soundPitch(
Index)
Returns the pitch of the sound at the index (2 ops)
= soundPitch(
Index)
Returns the pitch of the sound at the index (2 ops)
= soundVolume(
Index)
Returns the volume of the sound at the index (2 ops)
= soundVolume(
Index)
Returns the volume of the sound at the index (2 ops)
= soundPlaying(
Index)
Returns 1 if the sound at the index is playing, 0 if not (2 ops)
= soundPlaying(
Index)
Returns 1 if the sound at the index is playing, 0 if not (2 ops)
:emitSound(
Soundname,
Soundlevel,
Pitchpercent,
Volume)
Plays sound on entity. Note that one file can only be played once in a time. (20 ops)
:emitSound(
Soundname,
Soundlevel,
Pitchpercent)
Plays sound on entity. Note that one file can only be played once in a time. (20 ops)
:emitSound(
Soundname,
Soundlevel)
Plays sound on entity. Note that one file can only be played once in a time. (20 ops)
:emitSound(
Soundname)
Plays sound on entity. Note that one file can only be played once in a time. (20 ops)
:emitSoundStop(
Soundname)
Stops sound played with 'emitSound' (20 ops)