/tg/ Station 13 - Modules - TypesVar Details - Proc Details

elevator_music_area

Load or unload a looping sound when mobs enter or exit the area

Vars

enabledAre we currently playing sounds?
soundloop_typeLooping sound datum type to play
tracked_mobsAssoc list of mobs to sound loops currently playing

Procs

mob_destroyedRemove references on mob deletion
turn_offStop active sound loops
turn_onStart sound loops playing

Var Details

enabled

Are we currently playing sounds?

soundloop_type

Looping sound datum type to play

tracked_mobs

Assoc list of mobs to sound loops currently playing

Proc Details

mob_destroyed

Remove references on mob deletion

turn_off

Stop active sound loops

turn_on

Start sound loops playing