MusicBackgroundChangeDay(object, int)
Changes the background daytime music for the area specified.
void MusicBackgroundChangeDay( object oArea, int nTrack );
Parameters
oArea
Area to change the music of.
nTrack
Track number to change to.
Description
This function changes the daytime background music for the area.
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.
Version
1.29
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);
See Also
categories: | Area Functions | Music Effects Functions |
author: Michael Nork, editor: Charles Feduke, additional contributor(s): Tyson McCann