Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: KingGreenYoshi on December 25, 2014, 01:50:28 AM

Title: Anti-spore Shield
Post by: KingGreenYoshi on December 25, 2014, 01:50:28 AM
Can someone please supply me with a script which will either:
A: Destroy any spores which pass through it's range.
OR
B: Make it so no spores can land there.
OR
C: Delete the creeper from the spore as soon as it lands.

Can it also please keep out creeper?
Title: Re: Anti-spore Shield
Post by: syth9 on January 21, 2015, 04:14:24 PM
I'm willing to give it a shot, but question:
Do you want spore towers to still fire at the units inside the shield, or simply make a zone that spore towers do not choose as a target?

For the former, I can create custom spore towers (that you would use instead of normal spore towers) that fire spores with 0 payload when firing at units inside the shield. This will make the tower waste its spore and have to charge again.

For the latter (which will also be easier) I can make the custom spore tower simply find a target unit not within the shield. This means the towers will never waste spores on the space inside the shield.