Lua:SmartSpeak

From Fortress Forever Wiki
Revision as of 23:49, 15 February 2010 by Crazycarl (talk | contribs) (2.4 update)
Jump to navigationJump to search


SmartSpeak

Plays one vox sentence for a specified player, another for that player's teammates, and another for the other team(s). This command is out-of-date. For default, randmized CTF announcements, use Lua:RandomFlagTouchSpeak instead.

Usage

SmartSpeak(player, "CTF_YOUGOTFLAG", "CTF_GOTFLAG", "CTF_LOSTFLAG")

Input

  • player(CFFPlayer) A player (such as the one who just grabbed a flag)
  • playerspeak(string) Sentence to play for the player
  • teamspeak(string) Sentence to play for the player's team
  • otherteamspeak(string) Sentence to play for the other team(s)

Use entries from FortressForever\scripts\sentences.txt.

Output

Returns: nothing

Example

SmartSpeak(player, "CTF_YOUGOTFLAG", "CTF_GOTFLAG", "CTF_LOSTFLAG")
--"you have the enemy flag"/"Your team has the enemy flag"/"The enemy has your flag"