Table of Contents

Method PlaySoundByStrRef

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

strRef StrRef

String reference number of the sound to play.

runAsAction bool

Determines if this is an action that can be stacked on the action queue.

Returns

Task

Remarks

The strRef values for sounds can be found in the file dialog.tlk in the NWN install directory.