boss_music
Attaches to a hostile simplemob and plays that music while they have a target.
Vars | |
boss_track | The music track we will play to players. |
---|---|
music_callbacks | List of callback timers, used to clear out mobs listening to boss music after track_duration . |
players_listening_uids | List of all mobs listening to the boss music currently. Cleared on Destroy or after track_duration . |
track_duration | How long the track is, used to clear players out when the music is supposed to end. |
Procs | |
clear_target | Removes old_target from the list of players listening, and stops their music if it is still playing.
This allows them to have music played again if they re-enter combat with this fauna. |
on_mob_death | Called when a mob listening to boss music dies- ends their music early. |
on_target_found | Handles giving the boss music to a new target the fauna has received. Keeps track of them to not repeatedly overwrite its own track. |
Var Details
boss_track
The music track we will play to players.
music_callbacks
List of callback timers, used to clear out mobs listening to boss music after track_duration
.
players_listening_uids
List of all mobs listening to the boss music currently. Cleared on Destroy or after track_duration
.
track_duration
How long the track is, used to clear players out when the music is supposed to end.
Proc Details
clear_target
Removes old_target
from the list of players listening, and stops their music if it is still playing.
This allows them to have music played again if they re-enter combat with this fauna.
on_mob_death
Called when a mob listening to boss music dies- ends their music early.
on_target_found
Handles giving the boss music to a new target the fauna has received. Keeps track of them to not repeatedly overwrite its own track.