Open hatfield-c opened 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.
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.