Emits a game sound to a list of clients.
Game sounds are found in a game's scripts/game_sound.txt or other files referenced from it
Note that if a game sound has a rndwave section, one of them will be returned at random.
bool EmitGameSound(const int[] clients, int numClients, const char[] gameSound, int entity, int flags, int speakerentity, const float origin[3], const float dir[3], bool updatePos, float soundtime)
Array of client indexes.
Number of clients in the array.
Name of game sound.
Entity to emit from.
Sound flags.
Unknown.
Sound origin.
Sound direction.
Unknown (updates positions?)
Alternate time to play sound for.
True if the sound was played successfully, false if it failed
Invalid client index or client not in game.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.