Strikecraft and buffs question

Alright, another idea I had for a method to implement mine laying is as follows:

The miner ship is a normal frigate.  Mines are a special type of strikecraft.  When you place a mine, the phase engines on the miner ship are disabled (to avoid the problem I had before where the miner ship would drag the mines along with it through phase space.)  If all the mines of the miner ship are destroyed, the miner ships phase engines are brought back online.

To implement this, I gave the miner ship an aura buff that places a buff on its strikecraft every second.  The buff that is placed on the strikecraft then turns around and places a buff on the miner ship.  The buff on the miner ship disables the miner ship's phase engines.  That buff on the miner ship has a finish condition that if the mine no longer has the first buff, the miner ship buff goes away.  The miner ship buff stacks, so multiple mines should disable the phase engines properly.

The problem I am having is this:  I cannot get the first buff (on the mine) to place the second buff on the miner ship.  I tried using ApplyBuffToTargetsLinked and ApplyBuffToLastSpawnerWithTravelNoFilterNoRange (from the modifier sticky in this forum), but neither of them worked.  Has anyone been able to get that basic functionality to work in their mods?

Thanks for the help.

3,774 views 3 replies
Reply #1 Top
Just DESTROY the miner ship after it deploys the mines and set the mines to zero degredation with no host.

If the miner ship itself is a deployed entity (from like a SOVA), then you won't miss it anyway...
Reply #2 Top
Oh wait, if you destroy the miner ship, the mines don't have anything to tell them to blow up like mines, because strikecraft have no abilities, darn, almost had it...
Reply #3 Top
How about if the miner ship also deploys a mine ability ship, whose sole function is to give the mines the ability to explode like mines!

You would only need one per gravity well, (I think), and you could make it indestructible, and invisible, since it's not supposed to be seen and does not impact the game other than to make the mines explode...