MusicBackgroundChangeNight

From NWN Lexicon



Contents

[edit] MusicBackgroundChangeNight(object, int)

Changes the background nighttime music for the area specified.

void MusicBackgroundChangeNight(
    object oArea,
    int nTrack
);

[edit] Parameters

oArea

Area to change the music of.

nTrack

Track number to play.


[edit] Description

This function changes the nighttime background music for the area.



[edit] Remarks

This will also turn the music on 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 nighttime music for the area the 
// object is to 'City Night'
Object oArea = GetArea(OBJECT_SELF);
MusicBackgroundChangeNight (oArea, 21);

[edit] See Also



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

Personal tools
Categories