I'm trying to refresh the industry screen without having to exit/enter the entire dialogue, something that the new buttons seem to do on press, but doesn't appear to be accessible from the outside.
Any way to get at that?
Hmm, I don't think so, sorry!
How can I determine to which ship a Terminator Drone belongs? No API method I have tried yields this answer.
I think the only way is to use ship.getWing() before the drone is converted into a missile and hold on to that info. At least, that's the only thing that comes to mind.
how do you set a weapon to "rest" in the center of it's firing arc?
I'm doing some stuff using the DEM drone & a semi-custom drone AI (using a script to control it's movement), but the weapons seemingly always want to point at 0,0 when I've not given them a target through the fire shipCommand
and an addendum to this now that I'm messing with normal fighters as well; is there a way to stop a fighter's AI from moving it without replacing the whole AI?
I'm giving commands to a fighter in an EveryFrameCombatPlugin but the AI still seems to be fighting against them (If I set thew AI to null they'll go exactly where they're told to, otherwise they drift & bounce wierdly)
They should just do this automatically after some time; it's hard to say what you might be doing that's overriding that, hmm.
For fighters: I guess you could set its location directly?
I noticed that there's now ProjectileWeaponSpecAPI.setRequiresFullCharge, but I'm not sure how to use it. I assume it means that you can fire a weapon at partial charge with partial strength, but after setting this to false, I don't notice any change in the weapon's behavior. I'm still unable to fire any weapons at partial charge.
Does anyone have any idea how to get this feature to work?
Ah, this shouldn't have been exposed; it's a holdover from when there was a different type of weapon - "pulse" weapons that required the button to be held down to charge and fired on release. It was too fiddly and was abandoned.
Before diving into the documentation and trying to find clues in the Documentation:
Is there a "simple" way to hook into the conversation dialog to execute a method with the last written text as parameter whenever something is written in the dialog, without writing custom dialog for everything?
Hmm, not that I can think of. That'd require the text panel to have a listener for that sort of thing and that doesn't exist. (Or I suppose some kind of code injection...)