MusicBackgroundChangeNight(object, int)

Changes the background nighttime music for the area specified.

void MusicBackgroundChangeNight(
    object oArea,
    int nTrack
);

Parameters

oArea

Area to change the music of.

nTrack

Track number to play.


Description

This function changes the nighttime background music for the area.



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.


Version

1.29

Example

// this would change the nighttime music for the area the 
// object is to 'City Night'
Object oArea = GetArea(OBJECT_SELF);
MusicBackgroundChangeNight (oArea, 21);

See Also

categories: Area Functions | Music Effects Functions


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