Knuckle Cracker

Particle Fleet => Map Makers, Ship Builders, and Coders => Topic started by: Sorrontis on May 23, 2017, 12:48:33 AM

Title: Building EnergyMines on EnergySources
Post by: Sorrontis on May 23, 2017, 12:48:33 AM
So, I want to make a script that after some time, all the energy sources that do not have a mine on them, suddenly have a built enemy mine.

I tried the || "EnergyMine" Coordinates-of-EnergySource CreateUnit ->Mine || method, but that doesn't seem to work. Am I missing something?
Title: Re: [PRPL] Building EnergyMines on EnergySources
Post by: GoodMorning on May 23, 2017, 12:52:18 AM
Well, multiple sources can be on the same spot, so I understand why that doesn't work - I don't know of a way to make a mine, though. They're so bound-up that I have wondered why they aren't one unit (with state changes).
Title: Re: [PRPL] Building EnergyMines on EnergySources
Post by: Sorrontis on May 23, 2017, 12:54:28 AM
Quote from: GoodMorning on May 23, 2017, 12:52:18 AM
Well, multiple sources can be on the same spot...

Good point.

The only thing I can think of right now is by spawning the perfect # of particles on the energy source to "built" the mines.
Title: Re: [PRPL] Building EnergyMines on EnergySources
Post by: GoodMorning on May 23, 2017, 01:07:40 AM
That can fail if the mines were red and then destroyed recently (there's a delay before the next mine is attempted). So if you do that, you would (at the least) need to zero the maximum speed.