ThingSound

From Eternity Wiki
Revision as of 10:32, 21 November 2020 by Printz (talk | contribs) (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]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

ACS built-in function.

Description

Plays a sound from tagged things.

Usage

ThingSound(int tid, str sound, int volume)

Parameters

  • 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.

Examples

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

ThingSound(0, "telept", 64);

Notes

No particular notes.

See also