PlaySoundToTeam( <aliasname>, <teamname>, <ignoreplayer> )


Module: Sound
MP Only

Summary:

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



Call this on:

<entity> An entity



Example:

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



Required Args:

  • 1 : <aliasname> The sound alias to play
  • 2 : <teamname> The team that will be able to hear the sound. Must be either 'axis' or 'allies'.


Optional Args

  • 1 : <ignoreplayer> If present, this player will not hear the sound.