PlaySpeakSoundByStrRef

From NWN Lexicon


Contents

[edit] PlaySpeakSoundByStrRef(int)

Do a call to both SpeakStringByStrRef and PlaySoundByStrRef at the same time.

[edit] Parameters

nStrRef

The integer reference to the entry in the tlk file.


[edit] Description

Do a call to both PlaySoundByStrRef at the same time.



[edit] Requirements

#include " nw_i0_plot "


[edit] Version

???

[edit] 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);
}

[edit] See Also

functions: 

SpeakStringByStrRef



author: Baragg, editors: Mistress, Kolyana

Personal tools
Categories