#How do I add an announcer sound that an allied tower or building is being attacked?

1 messages · Page 1 of 1 (latest)

tawny skiffBOT
#

Found 4 functions for emitannouncer

🇸 EmitAnnouncerSound(soundName: string): nil
Emit an announcer sound for all players.
🇸 EmitAnnouncerSoundForPlayer(soundName: string, playerId: PlayerID): nil
Emit an announcer sound for a player.
🇸 EmitAnnouncerSoundForTeam(soundName: string, team: DOTATeam_t): nil
Emit an announcer sound for a team.
🇸 EmitAnnouncerSoundForTeamOnLocation(soundName: string, team: DOTATeam_t, location: Vector): nil
Emit an announcer sound for a team at a specific location.

barren stirrup
void citrus
#

Its probably hardcoded to exact dota towers and does not work for custom units based on them. Just play announcer sounds when your tower attacked (with cooldown), destroyed, etc. If you use dota announcer sound events it should consider player specific announcers

#

You can also try SetAnnouncerDisabled(false) and SetAnnouncerGameModeAnnounceDisabled(false) because valve may set true for this things as default values

wooden coral
void citrus
#

Thats because sounds must be precached before you can use them. Some of dota sounds precached by prewarm or hero pick

acoustic totem
void citrus
#

Post your precache code then