what's the most reliable way to turn a ship into a hulk? i know applyDamage works, but it's unpredictable. is there some boolean toggle that can be flipped to say that this ship is no alive?
I think applyDamage is your best bet, regardless - especially since you'll want to damage the armor. There's a makeLookDisabled() method internally but it wasn't in the API; I've added it.
You could also ship.setHulk(true) and .setHitpoints(-1) but iirc that would not do all the necessary steps to make it *look* disabled.
[Edit] Got it - monitoring CombatEngineAPI.getFleetManager(FleetSide.ENEMY).getRetreatedCopy() for changes instead.
*thumbs up*
How do I get a left click input?
basically, if left click do this
I've tried this monstrosity but it does nothing at all
There are some other issues here (you need to check that the event is not event.isConsumed()) but that aside I'm not sure this method actually exists in any interface that would be called by core code?
public void advance(float amount, WeaponAPI weapon, List<InputEventAPI> events)
BaseEveryFrameCombatPlugin has:
advance(float amount, List<InputEventAPI> events)
and
public void processInputPreCoreControls(float amount, List<InputEventAPI> events)
Note the different method signatures (parameters etc).
Im so mad I have to ask this, I literally just asked a mod to delete my comments from this thread so I dont get notifications about it constantly; Is there a way to remove tags with hullmods? trying to get a carrier to not think its a carrier, for, reasons
Hmm, "tags"? I think you don't actually mean tags but rather stuff in the "hints" column? But tags on variants are also a thing. Offhand though I don't think this is possible without affecting *every* ship of that type.