PlaySpeakSoundByStrRef
From NWN Lexicon
Jump to navigationJump to search
PlaySpeakSoundByStrRef(int)
Do a call to both SpeakStringByStrRef and PlaySoundByStrRef at the same time.
void PlaySpeakSoundByStrRef(
int nStrRef
);
Parameters
nStrRef
The integer reference to the entry in the tlk file.
Description
Do a call to both PlaySoundByStrRef at the same time.
Requirements
#include " nw_i0_plot "
Version
???
Example
// Lets' do line 17122 of the default tlk file.
#include "nw_i0_plot"
void main()
{
// This string should be:
// "Everything is dying. people... the animals... There's not much a person can do... is there?".
// The sound resref that should be played is "vs_fnyatarm_050".
PlaySpeakSoundByStrRef(17122);
}
See Also
| functions: |
author: Baragg, editors: Mistress, Kolyana