Lua:BroadCastSoundToPlayer

From Fortress Forever Wiki
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")