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'']]]]) | |||
Plays sound on a tagged thing. | |||
Parameters: | |||
*''tid'': tag of thing to play the sound | *''tid'': tag of thing to play the sound | ||
*''sound'': name of sound to play | *''sound'': name of sound to play | ||
Line 12: | Line 13: | ||
*''looping'': whether to loop the sound (default: FALSE). | *''looping'': whether to loop the sound (default: FALSE). | ||
*''attenuation'': attenuation, how much to fade sound with distance, default '''ATTN_NORM'''. Note that despite this being a fixed-point number, it really only results in some specific attenuation patterns. Expected values are: '''ATTN_NONE''', '''ATTN_NORM''', '''ATTN_IDLE''' and '''ATTN_STATIC'''. | *''attenuation'': attenuation, how much to fade sound with distance, default '''ATTN_NORM'''. Note that despite this being a fixed-point number, it really only results in some specific attenuation patterns. Expected values are: '''ATTN_NONE''', '''ATTN_NORM''', '''ATTN_IDLE''' and '''ATTN_STATIC'''. | ||
===See also=== | |||
*[[ACS built-in functions]] | |||
*[[ActivatorSound]] | *[[ActivatorSound]] | ||
*[[AmbientSound]] | *[[AmbientSound]] | ||
*[[LocalAmbientSound]] | *[[LocalAmbientSound]] | ||
==EDF codepointer== | ==EDF codepointer== | ||
{{codepointer | {{codepointer | ||
|description=Plays a sound. | |description=Plays a sound. | ||
|usage= | |usage= | ||
:''' | :'''PlaySound''' | ||
:'''misc1''' ''sound_name'' | :'''misc1''' ''sound_name'' | ||
:'''misc2''' ''volume'' | :'''misc2''' ''volume'' |