Lua:SmartTeamSound

From Fortress Forever Wiki
Jump to navigationJump to search


SmartTeamSound

Plays one sound for a selected team, and another for the other team(s).

Usage

SmartTeamSound(team, teamsound, enemysound)

Input

  • team(CFFTeam) The team to hear the primary sound
  • teamsound(string) Sound to play for the selected team
  • enemysound(string) Sound to play for the other team(s)

Use an entry from one of the game_sounds files in Fortressforever\scripts\. All sounds used by lua should be precached.

Output

Returns: Nothing

Example

SmartTeamSound(team, "yourteam.flagreturn", "otherteam.flagreturn")