Hello,
i am asking on behalf of Mr. maroder, the autor of the aircraft mod "Raven" https://mods.factorio.com/mods/maroder/Raven.
The mod is using a 2 entity system, one for the landed state and one for the flying. Curently while changing the entity the energy remaining in it dissapear, i.e. a new energy cell is used on every landing and take off.
We would like to have an ability to read/write the energy remaining or energy used of an entity, if possible.
Thanks you very much.
P.S. One more thing (sorry if this is the wrong subforum for that). After update 0.15.10 while taking off (switching) the acceleration button is no longer registered and you have to release and press it again. I have no idea whats going on, though.
Read / write energy used by the entity
Re: Read / write energy used by the entity
You can already read energy available/remaining in any entity?
If you want to get ahold of me I'm almost always on Discord.
Re: Read / write energy used by the entity
We have only LuaEntity energy :: double [RW] Energy stored in the entity (heat in furnace, energy stored in electrical devices etc.)Rseding91 wrote:You can already read energy available/remaining in any entity?
There is no way to read/write "energy" for cars. The energy that is required is displayed by the progress bar near the fuel inventory of the car.
P.S.: In the mod, the script transplants the passenger from the car to the car.
After update 0.15.10 while taking off (switching) the acceleration button is no longer registered and you have to release and press it again.
- Ranakastrasz
- Smart Inserter
- Posts: 2173
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Read / write energy used by the entity
I Think you need to refer to the burner attached to the car, and use that. Not 100% sure tho.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16