Instructions/Get Battery

From Desynced Wiki
Revision as of 04:57, 17 September 2023 by Johan (talk | contribs) (informational)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

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

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

Check Battery, Get Self