PlaySound
From Eternity Wiki
Jump to navigationJump to search
PlaySound exists both as an ACS function and as an EDF codepointer. Syntax differs.
ACS function
void PlaySound (int tid, str sound [, int channel [, fixed volume [, bool looping [, fixed attenuation]]]])
EDF codepointer
Parameters:
- misc1 = Sound mnemonic or DeHackEd number to play (must be valid, no default)
- misc2 = Select sound volume
- 0 = normal (default)
- 1 = full volume
Causes the object to emit the sound indicated by the provided sound mnemonic or DeHackEd number, at the indicated volume level.
If the sound name or number is invalid, nothing will happen.
Can be used with PlayerThunk.
For Decorate availability, use PlaySoundEx instead.