Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PowerCell can't be found using radar() while in PowerPlant
#2
@Virzen

The radar(); function only detects this type of object if it is on the ground.

However, using the above code as an example:

Code:
pPlant = radar(PowerPlant);

pPlant.busy(); // returns true if the PowerCell is being produced and false when it is done.

pCell = pPlant.energyCell; // is a pointer to the object that was produced, and returns as null until it is produced.

This is true for PowerCells on robots and other buildings as well.


Messages In This Thread
RE: PowerCell can't be found using radar() while in PowerPlant - by melex750 - 11-08-2015, 10:54 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)