Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get PowerCell energy level
#2
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:
Code:
object bot = radar(someotherbot);
if (bot.energyCell.energyLevel == 0)
{
   replacebattery(bot);
}
if(this.energyCell.energyLevel < 0.2)
{
   gochargeyourself();
}
Spoiler :
[Image: unknown.png]


Messages In This Thread
Get PowerCell energy level - by lexofein - 04-06-2017, 11:01 AM
RE: Get PowerCell energy level - by tomangelo - 04-06-2017, 12:47 PM
RE: Get PowerCell energy level - by krzys_h - 04-06-2017, 02:22 PM
RE: Get PowerCell energy level - by krzys_h - 04-06-2017, 05:06 PM
RE: Get PowerCell energy level - by tomangelo - 04-06-2017, 08:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)