Remotely attacks or heals creeps, or repairs structures. Can be targeted to any object in the room. However, its effectiveness highly depends on the distance. Each action consumes energy.
API[]
Properties[]
- energy - The amount of energy containing in this structure.
- energyCapacity - The total amount of energy this structure can contain.
Methods[]
- attack(target) - Remotely attack any creep in the room.
- heal(target) - Remotely repair any structure in the room.
- Use Creep.withdraw(target, resourceType, [amount) - This is deprecated:
transferEnergy(target, amount)- Transfer energy from the structure to a creep. You can transfer resources to your creeps from hostile structures as well.