Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

IMyBatteryBlock.CurrentOutput

$
0
0
Hi there,
i recently started getting into scripts of SE and doing some simple exercises to gather experience.

Currently i'm trying to calculate the lifetime of a battery until it's depled.
Example a large grid battery with 3 MWh charge, input of 0 kW and output of 30 kW would last:
3000 kWh / 30 kW = 100h = 4.17 days. That's exactly what the terminal GUI shows, too.
But when i access the battery block by script and read "CurrentOutput" i receive 0.1289! What is this value? How may i convert...

IMyBatteryBlock.CurrentOutput

Viewing all articles
Browse latest Browse all 903

Trending Articles