Difference between revisions of "Osiris/API/PlaySound"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented PlaySound)
 
(PointSoundTriggers don't work either for PlaySound)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
Plays the sound whose [[Content_browser|resource name]] equals '''_SoundEvent''' at '''_Object''''s location. The sound event resources can be found by right-clicking on the green loudspeaker icon in the resource panel.
 
Plays the sound whose [[Content_browser|resource name]] equals '''_SoundEvent''' at '''_Object''''s location. The sound event resources can be found by right-clicking on the green loudspeaker icon in the resource panel.
 
===== Notes =====
 
===== Notes =====
* '''_Object''' must be a character, item or PointSoundTrigger (regular PointTriggers will not work!).  
+
* '''_Object''' must be a character or item. In particular, passing triggers, including PointSoundTriggers, will not do anything.  
 
* If '''_Object''' is [[Osiris/API/SetOnStage|off-stage]] when this routine is called, no sound will be played.
 
* If '''_Object''' is [[Osiris/API/SetOnStage|off-stage]] when this routine is called, no sound will be played.
 
===== See Also =====
 
===== See Also =====
 
* /
 
* /
 
    
 
    
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|PlaySound]]

Latest revision as of 17:11, 25 February 2018

Full Definition(s)
  • call PlaySound((GUIDSTRING)_Object, (STRING)_SoundEvent)
Description

Plays the sound whose resource name equals _SoundEvent at _Object's location. The sound event resources can be found by right-clicking on the green loudspeaker icon in the resource panel.

Notes
  • _Object must be a character or item. In particular, passing triggers, including PointSoundTriggers, will not do anything.
  • If _Object is off-stage when this routine is called, no sound will be played.
See Also
  • /