Instructions/Get Battery: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational)
 
Line 3: Line 3:
==== Description ====
==== Description ====


 
Gets the entity(self) and the number as a 0-100 percentage of the entity the behavior is installed in.
==== Uses ====
==== Uses ====


Used to retrieve the sum of all installed batteries in the current entity as a percentage.


If the entity has no battery (Lander, Drones and Buildings for example), the output will read as 0 unless they have any explicitly installed.


==== Similar Instructions ====
==== Similar Instructions ====


 
[[Instructions/Check Battery|Check Battery]], [[Instructions/Get Self|Get Self]]
{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 04:57, 17 September 2023


Get Battery
     
     Gets the value of the Battery level as a percent
Lua ID get_battery
Category Math
Icon Check Battery.png
Argument One: Type Output
Argument One: Name Result



Description[edit | edit source]

Gets the entity(self) and the number as a 0-100 percentage of the entity the behavior is installed in.

Uses[edit | edit source]

Used to retrieve the sum of all installed batteries in the current entity as a percentage.

If the entity has no battery (Lander, Drones and Buildings for example), the output will read as 0 unless they have any explicitly installed.

Similar Instructions[edit | edit source]

Check Battery, Get Self