Sound Functions

Aus EEP Handbuch
Wechseln zu: Navigation, Suche
EEPStructurePlaySound() EEPStructurePlaySound("Lua-Name",true|false)
type: function
    EEPStructurePlaySound("#1",true)
                
caller: script
defined in: EEP
parameters: two
returns: one
requires: EEP 13 plug-In 1
purpose: Turns a speaker model on or off.
notes:
  • First argument is the Lua name of the structure as String. The preceding hash sign and ID are sufficient as a Lua name, everything that follows may be omitted.
  • Second argument is a Boolean to turn the sound on or off.
  • Return value is true if the targeted structure exists, else false.


EEPPlaySound() EEPPlaySound("path/filename”)
type: function
    EEPPlaySound("User/Bimmel.wav")
                
caller: script
defined in: EEP
parameters: one
returns: one
requires: EEP 13 plug-In 1
purpose: Plays a sound unrelated to any model or camera location.
notes:
  • Only argument is the path and file name of a suitable mono wav file as a single string. The path is relative to “Resourcen/Sounds”.
  • Return value is true if the function was executed successfully, else false.