Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Data:Instruction:Get Battery
From Desynced Wiki
Read
Edit source
View history
Data
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
#REDIRECT [[Get Battery]] [[Category:Data:Storage:instruction]] {{DISPLAYTITLE:Get Battery}}<noinclude> {{DataInstruction |name = Get Battery |luaId = get_battery |description = Gets the value of the Battery level as a percent |category = Math |icon = Check Battery.png |explaination = Returns the unit and current battery level percentage as a number in the <hl>Result</> parameter. When multiple batteries are equipped, all batteries will be calculated. A unit that has no batteries equipped will always return zero, even while inside a power grid that has <bl>Unused</> power. |argsType1 = Output |argsName1 = Result |argsDescription1 = |argsDataType1 = |argsType2 = |argsName2 = |argsDescription2 = |argsDataType2 = |argsType3 = |argsName3 = |argsDescription3 = |argsDataType3 = |argsType4 = |argsName4 = |argsDescription4 = |argsDataType4 = |argsType5 = |argsName5 = |argsDescription5 = |argsDataType5 = |argsType6 = |argsName6 = |argsDescription6 = |argsDataType6 = |argsType7 = |argsName7 = |argsDescription7 = |argsDataType7 = |argsType8 = |argsName8 = |argsDescription8 = |argsDataType8 = |argsType9 = |argsName9 = |argsDescription9 = |argsDataType9 = |argsType10 = |argsName10 = |argsDescription10 = |argsDataType10 = |argsType11 = |argsName11 = |argsDescription11 = |argsDataType11 = }}{{DataTableIndex |storedTable=instruction |name=Get Battery }}</noinclude>
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:DataInstruction
(
edit
)
Template:DataTableIndex
(
edit
)