Lua:SmartTeamSpeak

From Fortress Forever Wiki
Jump to navigationJump to search


SmartTeamSpeak

Plays one vox sentence for a selected team, and another for the other team(s)

Usage

SmartTeamSpeak(team, teamspeak, enemyspeak)

Input

  • team(CFFTeam) The team to hear the primary sentence
  • teamspeak(string) Sentence to play for the selected team
  • enemyspeak(string) Sentence to play for the other team(s)

Use entries from FortressForever\scripts\sentences.txt.

Output

Returns: nothing.

Example

SmartTeamSpeak(team, "CTF_FLAGBACK", "CTF_EFLAGBACK")
--"Your flag has returned"/"the enemy flag has returned"