Anyways the trick to bossfight is to link the monster to the bossfight entity.
Code: Select all
function startBrothersBossFight()
boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster) -- here we add the skeleton_commander_1 to the fight
boss_fight_brothers.bossfight:addMonster(skeleton_commander_2.monster) -- here we add the second commander to the fight, so the health bar for the bossfight will be both there total health.
boss_fight_brothers.bossfight:activate() -- here we active the fight .
end
function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(medusa_1.monster)
boss_fight_medusa.bossfight:activate()
end
Skuggasveinn.