This package adds an Announcer Template that can be added to easily play announcer voice lines globally, locally, via callback, or manually.
The package supports the following voice lines: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 321, Vote Start, Vote End, Game Over, Power Up, Go,
To use, simply add the template
Announcer Template to an entity.
To play a voice line, you can use one of the following methods:
myEntity:SendToScripts("Say", "Go") -- This will cause the announcer to say GO myUser:SendToScripts("ClientSay", "Go") -- If the template is on a user (or any child of a user, including the player), you can use ClientSay to only play the sound for that user myEntity:SendToScripts("SayGo") -- This will cause the announcer to say GO myUser:SendToScripts("ClientSayGo") -- This will cause the announcer to say GO only on that user's client
The previous 2 methods are useful for events. For example, you can add the
Announcer Template / SayGo directly to the OnRoundStart, and it will play the voice line for all players whenever the round starts - no additional coding required. Please note that these methods will not appear in the event dropdown, however they are perfectly valid when typed in.