setMusicState
An eventCall to change the state of the specified idMusicEntity in an idEncounterManager.
Usage
item[0] = {
eventCall = {
eventDef = "setMusicState";
args = {
num = 3;
item[0] = {
entity = ""; // target
}
item[1] = {
decl = {
soundstate = ""; // stateDecl
}
}
item[2] = {
string = ""; // designComment
}
}
}
}
targetis theidMusicEntityto change the state of.stateDeclis the path to the decl for theidSoundStateyou want to change it to.
Example Usage
item[0] = {
eventCall = {
eventDef = "setMusicState";
args = {
num = 3;
item[0] = {
entity = "sound_sound_musicentity_1"; // target
}
item[1] = {
decl = {
soundstate = "music_ghost_states/main_heavy"; // stateDecl
}
}
item[2] = {
string = "Change music state to heavy combat music"; // designComment
}
}
}
}
See Also
No Comments