04-06-2017, 11:01 AM
Hello again. This game have some methods for get information about current battery level in bot? I want to automatize battery replace, but can't find anything about thread theme.
Get PowerCell energy level
|
04-06-2017, 11:01 AM
Hello again. This game have some methods for get information about current battery level in bot? I want to automatize battery replace, but can't find anything about thread theme.
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: Code: object bot = radar(someotherbot); Spoiler :
04-06-2017, 02:22 PM
04-06-2017, 02:44 PM
Is it documented anywhere? I just checked and couldn't find any SatCom pages that describes object's parameters like energyLevel or shieldLevel.
04-06-2017, 05:06 PM
@RaptorParkowsky It's in the documentation for "object" variable type
04-06-2017, 08:08 PM
(04-06-2017, 02:22 PM)krzys_h Wrote:(04-06-2017, 12:47 PM)tomangelo Wrote: 0-1 for PowerCells, 1-100 for NuclearCellsI'm pretty sure that's wrong. .energyLevel is always 0-1. You can use .category to check the type. Oh, maybe you're right. I had mistake scene syntax with cbot syntax. Spoiler : |
« Next Oldest | Next Newest »
|