my ?last?question in this thread...
what is wrong with the last line of this code (unit don't spawn)?
PHP Code:def onBuildingBuilt(self, argsList):
'Building Completed'
pCity, iBuildingType = argsList
game = CyGame()
if iBuildingType == gc.getInfoTypeForString( 'BUILDING_xyz' ):
pPlayer = gc.getPlayer(pCity.plot().getOwner())
gc.getTeam(pPlayer.getTeam()).setHasTech(gc.getInfoTypeForString( 'TECH_zyz' ), true, pPlayer.getID(), false, false)
#gc.getPlayer(pCity.plot().getOwner()).initUnit( 17, pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI )
pPlayer.initUnit( 17, pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI )
...





Reply With Quote
question in this thread...
![This is Impaler[WrG]'s Country Flag](images/ClassicFlags/United States.gif)


). how should the string looks like?




Bookmarks