Weird ElectricEnergyInterface behaviour and drain property behaviour

Things that already exist in the current mod API
Post Reply
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Weird ElectricEnergyInterface behaviour and drain property behaviour

Post by Linver »

Hi! I'm trying to create an entity (animated when work) that do nothing more than drain energy from the energy network, and maintain a buffer that will be modified via script for modding purpose.

So for example:
4MW drain
24MW max input
48MW of storage

The best fit prototype should be the ElectricEnergyInterface, but seems that the animation work only if the entity do a postivie work, if put new energy in the system, if consume it the animation didn't work (but work when the entity will be disconnected from the network until the buffer is empty?!)

Try to using Accumulator prototype, seems that accumulators ignore the drain property in the EnergySource

Is impossible do an entity like that?

User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Re: Weird ElectricEnergyInterface behaviour and drain property behaviour

Post by Linver »

Solved reducing the ElectricEnergyInterface animation speed.

Post Reply

Return to “Already exists”