Difference between revisions of "Lua:BroadCastSoundToPlayer"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: {{Infobox manual/Header}} ==BroadCastSoundToPlayer== Plays a sound for a specific player. ===Usage=== <pre>BroadCastSoundToPlayer(player, sound)</pre> ===Input=== * player(CFFPlayer) Th...)
 
(No difference)

Latest revision as of 13:55, 11 May 2009


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")