Greetings,
Why is this only for flying Robots? Why is it not for Trains, Cars etc. too. So we can read out what there max_energy capacity is?
Would be a nice to have.
Greetz,
Luzifer
LuaEntityPrototype.max_energy
- LuziferSenpai
- Filter Inserter
- Posts: 383
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: LuaEntityPrototype.max_energy
Because max_energy is only a property on flying robots. Trains, cars and so on have no max energy.
A robots max energy is the maximum amount of energy they can store. A train and or car don't store energy - they consume energy from what ever fuel they're burning which you can read through entity.burner. http://lua-api.factorio.com/latest/LuaBurner.html
A robots max energy is the maximum amount of energy they can store. A train and or car don't store energy - they consume energy from what ever fuel they're burning which you can read through entity.burner. http://lua-api.factorio.com/latest/LuaBurner.html
If you want to get ahold of me I'm almost always on Discord.
- LuziferSenpai
- Filter Inserter
- Posts: 383
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: LuaEntityPrototype.max_energy
Thats not what I ask for. I ask for that I can read out what the MAX Energy is that a Train can have. A Standard can have 10667 Energy so 600kW. Thats what I want to read out.Rseding91 wrote:Because max_energy is only a property on flying robots. Trains, cars and so on have no max energy.
A robots max energy is the maximum amount of energy they can store. A train and or car don't store energy - they consume energy from what ever fuel they're burning which you can read through entity.burner. http://lua-api.factorio.com/latest/LuaBurner.html
Re: LuaEntityPrototype.max_energy
You can read that with http://lua-api.factorio.com/latest/LuaE ... ergy_usage
If you want to get ahold of me I'm almost always on Discord.
- LuziferSenpai
- Filter Inserter
- Posts: 383
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: LuaEntityPrototype.max_energy
Oh ty!Rseding91 wrote:You can read that with http://lua-api.factorio.com/latest/LuaE ... ergy_usage