Lua:SmartTeamSound

From Fortress Forever Wiki
Revision as of 13:56, 11 May 2009 by Crazycarl (talk | contribs) (New page: {{Infobox manual/Header}} ==SmartTeamSound== Plays one sound for a selected team, and another for the other team(s). ===Usage=== <pre>SmartTeamSound(team, teamsound, enemysound)</pre> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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")