when the trigger is touched by the player, the attack animation gate is enabled and opened allowing monoliths attack animations to begin. when the trigger is touched it also hides the left parts of his body just encase they weren't destroyed in the previous boss fight. I added that for quicker play testing so I wouldn't have to run through the whole map just to check if his animations were reading.
Monolith Damage
I used 2 trigger volumes This time. One is used strictly during the danger dash attack animation that monolith has. When the dynamic trigger volumes touch the player it causes damage to the player. this was necessary to maintain the illusion of damage. the other is attached to the arm all the time.
Attack Animations
once monolith battle 2 is activated he loops through 3 animation cycles (danger dash, laser eye and vertical attack 2). we wanted the players to learn monoliths pattern to avoid death. Notice how the completed nodes to the animation go back into the gate that was done so that when the boss is destroyed the gate will close and thus the animation would stop.
During the laser eye animation I have a event track, when triggered a dummy weapon fire shoots lasers from monoliths eyes at 3 predefined target points in the level. Also when the right hand gets destroyed it enables the machine gun fire. it really is a nice surprise.
Boss Destruction
first off when the level is loaded the credits are hidden. this happens because we don't want the players to watch the credits before they beat monolith. when the right forearm gets destroyed the thrusters turn off and a explosion occurs which destroys all the other parts of monolith. Then we set the physics on monoliths head so it drops and hits the ground when this happens monolith head explodes creating a really cool ending. once this happens the credits become revealed and begin to roll congratulations you win!