Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 725 Bytes

README.md

File metadata and controls

37 lines (31 loc) · 725 Bytes

dMusic - G2O Union Module

Template Module

Refer to Union Module Template.

Usage

It only works on INSTANCES of Music, set in MusicInst.d

Play Music:

//Example: /music OWD_Day_Std

addEventHandler("onCommand", function(cmd, params){
	cmd = cmd.tolower();
	switch(cmd){
		case "music":
			if(!params) return;

			playTheme(params.toupper());
		break;
	}
});

Stop Music:

addEventHandler("onKeyDown", function(key){
	switch(key){
		case KEY_O:
			stopMusic();
		break;
		case KEY_P:
			muteMusic();
		break;
	}
});