Method PlaySoundByStrRef
PlaySoundByStrRef(StrRef, bool)
Plays a sound associated with a string reference (strRef).
The sound comes out as a mono sound sourcing from the location of the object running the command.
If runAsAction is False, then the sound is played instantly.
public Task PlaySoundByStrRef(StrRef strRef, bool runAsAction = true)
Parameters
strRefStrRefString reference number of the sound to play.
runAsActionboolDetermines if this is an action that can be stacked on the action queue.
Returns
Remarks
The strRef values for sounds can be found in the file dialog.tlk in the NWN install directory.