SNDC

SNDC is a CAOS command used to play WAV files in C3/DS.

Documentation
SNDC (command) sound_file (string)

Plays a controlled sound effect emitted from the target. Updates volume and panning as the agent moves.

Examples
The piranha makes a flopping sound when it's suffocating and has the sound stop (STPC) when it dies.

doif rtyp room targ ne 8 and rtyp room targ ne 9 sndc "fish" anim [48 49 50 51 255] accg 4 aero 10 loop wait 1 untl fall eq 0

velo rand -5 5 rand -10 -5 doif ov99 ge 20 stpc anim [] wait 30 kill ownr endi