MusicBattleChange(object, int)

Changes the battle music for the area specified.

void MusicBattleChange(
    object oArea,
    int nTrack
);

Parameters

oArea

The area to affect.

nTrack

Music track number.


Description

This function changes an area's battle music.



Remarks

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


Version

1.29

Example

// changes the current area's battle music to 'Forest Combat 2'
object oArea = GetArea(OBJECT_SELF);
MusicBattleChange(oArea, 36);

See Also

categories: Area Functions | Music Effects Functions


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