ThingSound: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "ACS built-in function. {{Action|description=Plays a sound from tagged things. |usage='''ThingSound'''(''int tid'', ''str sound'', ''int volume'') |parameters= *''tid'': [[tid]...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
ACS built-in function.
{{ACSFunction|id=ACC internal
{{Action|description=Plays a sound from tagged things.
|description=Plays a sound from tagged things.
|usage='''ThingSound'''(''int tid'', ''str sound'', ''int volume'')
|usage='''ThingSound'''(''int tid'', ''str sound'', ''int volume'')
|parameters=
|parameters=
Line 9: Line 9:
This makes the activator play the <code>telept</code> sound at half volume.
This makes the activator play the <code>telept</code> sound at half volume.
  ThingSound(0, "telept", 64);
  ThingSound(0, "telept", 64);
|seealso=
|notes=[[PlaySound]] is a more powerful version of this action.}}
*[[ACS built-in functions]]}}
[[Category:ACS]]

Latest revision as of 11:23, 21 November 2020

Description[edit]

This is an ACS built-in function.

Plays a sound from tagged things.

Usage[edit]

ThingSound(int tid, str sound, int volume)

Parameters[edit]

  • tid: tid of things to play the sound.
  • sound: name of sound to play.
  • volume: volume of sound to play. 127 is full volume, 0 is quiet.

Return value[edit]

Examples[edit]

This makes the activator play the telept sound at half volume.

ThingSound(0, "telept", 64);

Notes[edit]

PlaySound is a more powerful version of this action.

This function's identification in zspecial.acs is: ACC internal.

See also[edit]