• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How list units in a given plot

Paolo80

Chieftain
Joined
Dec 20, 2019
Messages
85
Hi guys,

I'm looking for a python function that lists all units in a given plot. Does it exist? I've found the function getUnitList in PyHelpers.py which lists all player's units. Is there a similar function to do this for a given plot?
 
Something like,
Code:
for i in range(pPlot.getNumUnits()):
    pLoopUnit = pPlot.getUnit(i)
 
Back
Top Bottom