SoundSequenceOnActor

From ZDoom Wiki
Jump to: navigation, search

void SoundSequenceOnActor (int tid, str sndseq);

Usage

Plays a sound sequence defined in SNDSEQ lump.

Examples

First make sure that you have defined in a SNDINFO lump in your mod the sounds that will be used by your sequence, for example:

    world/machinery1		A_AMB1

Here A_AMB1 is the name of a sound file included in the mod.

Then define a sound sequence in a SNDSEQ lump. For example:

    :MachineryLoop1
         playrepeat world/machinery1
    end

You can then easily use the sound sequence in your ACS script to make a sound come from a 'thing' on your map. For example, using a map spot with its tag set to 1, you could use this line:

    SoundSequenceOnActor (1, "MachineryLoop1");

See also