Working on a station at the moment, and just got done installing a rail based elevator. Got me wanting to have retractable turrets on the station like I plan on putting in my capitol ship, but there's a slight problem with that. Turrets on a station are for defending the station when I'm not around in a warship, so I wouldn't be there to press the button to deploy said turrets.
Which got me thinking. The game apparently already is capable of determining when an entity is in combat, because shield recharge rates change based on it. So there must be an internal flag/toggle.
Let us access the current state of that toggle with a logic block. That way we could build stations and ships that automatically respond to attack by deploying turrets via logic, and then goes back to a resting state when combat is over.
I have to admit, half the reason I want this is for when some random idiot decides that my outpost is unprotected and decides to take a pot shot at it. Logic detects combat initiated, hostile in range, flashing red lights turn on, doors open, giant cannons rise up vertically out of the depths before rotating 90 degrees and locking into position, then all turning to great the attacker...
Which got me thinking. The game apparently already is capable of determining when an entity is in combat, because shield recharge rates change based on it. So there must be an internal flag/toggle.
Let us access the current state of that toggle with a logic block. That way we could build stations and ships that automatically respond to attack by deploying turrets via logic, and then goes back to a resting state when combat is over.
I have to admit, half the reason I want this is for when some random idiot decides that my outpost is unprotected and decides to take a pot shot at it. Logic detects combat initiated, hostile in range, flashing red lights turn on, doors open, giant cannons rise up vertically out of the depths before rotating 90 degrees and locking into position, then all turning to great the attacker...