GSC reference › Built-in

PlayBattleChatterToTeam()

Built-in (engine) Server Called on: entity

Play the sound alias as if coming from the entity, so that only one team can hear it

Signature

<entity> PlayBattleChatterToTeam(<aliasname1>, <aliasname2>, <teamname>, [ignoreplayer])

Called on an entity: entity PlayBattleChatterToTeam(...)

Parameters

NameRequired?Details
aliasname1Required The first sound alias to play
aliasname2Required The second sound alias to play
teamnameRequired The team that will be able to hear the sound. Must be either 'axis' or 'allies' or 'team3'.
ignoreplayerOptional If present, this player will not hear the sound.

Example (from Treyarch's docs)

self PlaySoundToTeam( "frag_out", "axis", self )

Real uses in BO3's scripts

Not called anywhere in BO3's shipped scripts, so check it works in your mode before relying on it.

Related built-ins

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).