Scripting/Squirrel/Functions/Player.PlaySound: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Doom Killer (talk | contribs) (Created page with "This function will play a sound for a specific player == Syntax == <pre>Player.PlaySound( sound )</pre> == Arguments == * ''instance'' '''Player''' - The player to play so...") |
(No difference)
|
Revision as of 08:25, 12 March 2016
This function will play a sound for a specific player
Syntax
Player.PlaySound( sound )
Arguments
- instance Player - The player to play sound for
- int sound - The sound ID
Example
function OnPlayerCommand( player,cmd , text )
{
if ( cmd == "sound" )
{
player.PlaySound( 30 );
}
}
Notes
Use Player.UniqueWorld to play sound for a specific player.