Es.emitsound

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: emitsound

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Plays a sound centered from the target player or entity. This is the Python equivalent of: http://www.eventscripts.com/pages/es_emitsound

Arguments

  • emitter-type - This must be either
     player

or

     entity
  • id - If player specified this is a userid. If entity specified it's an entity index. Specifies what will emit the sound.
  • soundfile - Soundfile you want to have played
  • volume - volume of the sound (max: 1.0)
  • attenuation - how far the sound reaches (all across map: 0.0)


Examples


Notes

  • Only available in EventScripts v1.1.1 and later.
  • Does not cause the sound to be downloaded when players connect. You need to use the corelib command downloadable to set a download for each map.


See Also

blog comments powered by Disqus