Emits a sound or game sound to a list of clients using the latest version of the engine sound interface. This native is only available in engines that are greater than or equal to Portal 2.
void EmitSoundEntry(const int[] clients, int numClients, const char[] soundEntry, const char[] sample, int entity, int channel, int level, int seed, int flags, float volume, int pitch, int speakerentity, const float origin[3], const float dir[3], bool updatePos, float soundtime, any... ...)
Array of client indexes.
Number of clients in the array.
Sound entry name.
Sound file name relative to the "sound" folder.
Entity to emit from.
Channel to emit with.
Sound level.
Sound seed.
Sound flags.
Sound volume.
Sound pitch.
Unknown.
Sound origin.
Sound direction.
Unknown (updates positions?)
Alternate time to play sound for.
Optional list of Float[3] arrays to specify additional origins.
Invalid client index, client not in game, or lack of mod support.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.