11-08-2015, 10:54 PM
@Virzen
The radar(); function only detects this type of object if it is on the ground.
However, using the above code as an example:
This is true for PowerCells on robots and other buildings as well.
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.