Lua:BroadCastSoundToPlayer

From Fortress Forever Wiki
Revision as of 13:55, 11 May 2009 by Crazycarl (talk | contribs) (New page: {{Infobox manual/Header}} ==BroadCastSoundToPlayer== Plays a sound for a specific player. ===Usage=== <pre>BroadCastSoundToPlayer(player, sound)</pre> ===Input=== * player(CFFPlayer) Th...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


BroadCastSoundToPlayer

Plays a sound for a specific player.

Usage

BroadCastSoundToPlayer(player, sound)

Input

  • player(CFFPlayer) The player to hear the sound
  • sound(string) The sound to play. All sounds used by lua should be precached. Use an entry from one of the game_sounds files in Fortressforever\scripts\.

Output

Returns: Nothing

Example

BroadCastSound(player, "misc.unagi")