User:Phenomenon: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
Line 29: Line 29:
===== Usage =====
===== Usage =====


:''playsound [sound]'' will play sound for all clients<br>
:''<font color=gray>playsound [sound]</font>'' will play sound for all clients<br>


:''playsound [name/slot#] [sound]'' will play sound for that client only<br>
:''<font color=gray>playsound [name/slot#] [sound]</font>'' will play sound for that client only<br>


:''playsound_env [name/slot#] [sound]'' will play sound for that client and surrounding players only<br>
:''<font color=gray>playsound_env [name/slot#] [sound]</font>'' will play sound for that client and surrounding players only<br>

Revision as of 20:40, 25 July 2006

personal profile

personal bla bla later ...

lua script - playsoundcmd.lua

Description
This script adds new console commands "playsound" and "playsound_env" to the server.
Requirements
Installation
  • Add the following command to your server.cfg to call the script on server start
set lua_modules "playsoundcmd.lua"
  • Restart your server
Usage
playsound [sound] will play sound for all clients
playsound [name/slot#] [sound] will play sound for that client only
playsound_env [name/slot#] [sound] will play sound for that client and surrounding players only