GSC reference › Built-in
Announcement()
Built-in (engine)
Server
Sends an announcement to all clients.
Signature
Announcement(<string>, <duration>)
Parameters
| Name | Required? | Details |
|---|---|---|
| string | Required | The announcement. |
| duration | Required | How long, in seconds, to display the announcement. |
Real uses in BO3's scripts
Called 9 times in the decompiled scripts. A few, zombies first:
- scripts/zm/gametypes/_dev.gsc, line 825
announcement(getdvarstring(""), 0); - scripts/zm/gametypes/_globallogic_defaults.gsc, line 47
announcement(game["strings"]["opponent_forfeiting_in"], forfeit_delay, 0); - scripts/mp/gametypes/_dev.gsc, line 1033
announcement(getdvarstring(""), 0); - scripts/mp/gametypes/_globallogic_defaults.gsc, line 50
announcement(game["strings"]["opponent_forfeiting_in"], forfeit_delay, 0); - scripts/cp/gametypes/_dev.gsc, line 700
announcement(getdvarstring(""), 0);
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).