function FPlaySound (objBoss, path) {
	let soundObj;
	
	if (ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0) {
		soundObj = ObjSound_Create;
		ObjSound_Load(soundObj, path);
		ObjSound_SetSoundDivision(soundObj, SOUND_SE);
		ObjSound_SetVolumeRate(soundObj, 65);
		ObjSound_Play(soundObj);
	}
	
	return soundObj;
}

function FPlaySoundNR (path) {
	let soundObj = ObjSound_Create;
	ObjSound_Load(soundObj, path);
	ObjSound_SetSoundDivision(soundObj,SOUND_SE);
	ObjSound_SetVolumeRate(soundObj, 65);
	ObjSound_Play(soundObj);
	return soundObj;
}

function FPlaySoundDelay (objBoss, path, waitTime) {
	let soundObj;
	TPlay();
	
	task TPlay () {
		FWait(waitTime);
		
		if (ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0) {
			soundObj = ObjSound_Create;
			ObjSound_Load(soundObj, path);
			ObjSound_SetSoundDivision(soundObj, SOUND_SE);
			ObjSound_SetVolumeRate(soundObj, 65);
			ObjSound_Play(soundObj);
		}
		
	}
}