04-06-2017, 12:47 PM
item.energyCell.energyLevel (or this.energyCell.energyLevel if you don't need to check other bots)
0-1 for PowerCells, 1-100 for NuclearCells
Example:
0-1 for PowerCells, 1-100 for NuclearCells
Example:
Code:
object bot = radar(someotherbot);
if (bot.energyCell.energyLevel == 0)
{
replacebattery(bot);
}
if(this.energyCell.energyLevel < 0.2)
{
gochargeyourself();
}
Spoiler :