Quote:
...
In the log I got your message: [Oolite Q-bomb AI]: Q-bomb - shipSpawned by ( null | player | spawnOne | system.addShips ).
...
This version Q-bomb has safe mode spawning. It will activated if it:
- has owner;
- has order from owner for its activation via
AIScript.shipWasDumped()
.
For example for your ship scripts should be:
Code:
this.shipDied = function(who,why)
{
...
var reactor = system.addShips("EQ_CWC_Q_MINE", 1, this.ship.position);
reactor[0].AIScript.shipWasDumped();
reactor = system.addShips("EQ_CWC_Q_MINE", 2, this.ship.position);
reactor.forEach(function(ship) {ship.AIScript.shipWasDumped();}, this);
...
}
Also working template code from
Spicy hermits OXP:
Code:
var qbomb = ship.spawnOne("energy-bomb");
qbomb.AIScript.shipWasDumped();