hatfield-c / rotkr

Rats! Of the Kar Re-Bein by Katin Games
0 stars 0 forks source link

[ROTKR-60] Getting stuck on the ceiling underwater should trigger a lose condition #60

Open hatfield-c opened 4 years ago

hatfield-c commented 4 years ago

When the ship gets stuck on the ceiling, and the water pins it there and then rises above the ship, this should trigger a lose condition of some kind.

hatfield-c commented 4 years ago

If you can, try to plug this logic into the AI controlled ships, such that if they get stuck on the ceiling it triggers their death functionality.

The ActorShipManager class has a "KillThisShip" function. You should be able to trigger this to set the death function in motion. You should also set the "dead" boolean class variable in the childed ActorHealthManager to true as well, just to be safe, but you can just modify the KillThisShip function to do so.

Feel free to modify what you need.