MusicBattleChange
From NWN Lexicon
Jump to navigationJump to search
MusicBattleChange(object, int)
Changes the battle music for the area specified.
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);
object oArea = GetArea(OBJECT_SELF);
MusicBattleChange(oArea, 36);
See Also
author: Michael Nork, editor: Charles Feduke, additional contributor(s): Tyson McCann