MusicBackgroundChangeDay

From NWN Lexicon



Contents

[edit] MusicBackgroundChangeDay(object, int)

Changes the background daytime music for the area specified.

void MusicBackgroundChangeDay(
    object oArea,
    int nTrack
);

[edit] Parameters

oArea

Area to change the music of.

nTrack

Track number to change to.


[edit] Description

This function changes the daytime background music for the area.



[edit] Remarks

This will also turn on the music if it is currently off.

There are no constants for nTrack; instead please refer to Resources > Sounds & Music > Music for track numbers.


[edit] Version

1.29

[edit] Example

// this would change the daytime music for the area the 
// object is in to 'Theme Morag'
Object oArea = GetArea(OBJECT_SELF)
MusicBackgroundChangeDay(oArea, 55);

[edit] See Also



 author: Michael Nork, editor: Charles Feduke, additional contributor(s): Tyson McCann
 

Personal tools
Categories