The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding Powercells that needs charging
#1
How do I get a grabber to only collect Powercells that needs to be charged?

Code:
extern void object::Findandcharge()
{
object item;
while(true)
{

item=radar(PowerCell);

while ( item.energyLevel < 1 )
{
goto(item.position);
grab();
}
}
}


Messages In This Thread
Finding Powercells that needs charging - by Jono - 04-09-2015, 08:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)