Editing PlaySound
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
==ACS function== | ==ACS function== | ||
void PlaySound (int tid, str sound [, int channel [, fixed volume [, bool looping [, fixed attenuation]]]]) | |||
==EDF codepointer== | ==EDF codepointer== | ||
Parameters: | |||
: | |||
*'''misc1''' = Sound mnemonic or DeHackEd number to play (must be valid, no default) | *'''misc1''' = Sound mnemonic or DeHackEd number to play (must be valid, no default) | ||
*'''misc2''' = Select sound volume | *'''misc2''' = Select sound volume | ||
**0 = normal (default) | **0 = normal (default) | ||
**1 = full volume | **1 = full volume | ||
Causes the object to emit the sound indicated by the provided sound mnemonic or DeHackEd number, at the indicated volume level. | Causes the object to emit the sound indicated by the provided sound mnemonic or DeHackEd number, at the indicated volume level. | ||
Line 39: | Line 18: | ||
Can be used with [[PlayerThunk]]. | Can be used with [[PlayerThunk]]. | ||
For [[DECORATE state syntax|Decorate]] availability, use [[PlaySoundEx]] instead. | For [[DECORATE state syntax|Decorate]] availability, use [[PlaySoundEx]] instead. | ||
===See also=== | |||
*[[List of codepointers]] | |||
*[[PlaySoundEx]] | *[[PlaySoundEx]] | ||
[[Category:Codepointers]] | [[Category:Codepointers]] | ||
[[Category:MBF codepointers]] | [[Category:MBF codepointers]] |