Difference between revisions of "Osiris/API/PlaySound"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented PlaySound)
 
m
Line 9: Line 9:
 
* /
 
* /
 
    
 
    
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|PlaySound]]

Revision as of 16:24, 19 December 2017

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, item or PointSoundTrigger (regular PointTriggers will not work!).
  • If _Object is off-stage when this routine is called, no sound will be played.
See Also
  • /