PlaySoundByStrRef(int, int)

Plays a sound associated with a string reference (StrRef).

void PlaySoundByStrRef(
    int nStrRef,
    int nRunAsAction = TRUE
);

Parameters

nStrRef

String reference number of the sound to play.

nRunAsAction

Determines if this is an action that can be stacked on the action queue. (Default: TRUE)


Description

Plays a sound associated with a StrRef. The sound comes out as a mono sound sourcing from the location of the object running the command. If nRunAsAction is FALSE, then the sound is played instantly.



Remarks

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


Version

1.30

See Also

categories: Sound Effects Functions


 author: Charles Feduke, editor: Lilac Soul
 Send comments on this topic.