Craig_Sutter
Deity
Why would one use this:
instead of this:
I found the former code to not consistently fire for some reason... am now going to try the latter in autoplay to see if I get better results. Hopefully, it will fire more reliably.
Code:
local Buildingnum = city:GetNumRealBuilding(iBuilding)
if Buildingnum == 0 then
city:SetNumRealBuilding(iBuilding, 1);
end
instead of this:
Code:
if not pCity:IsHasBuilding( iBuilding ) then
pCity:SetNumRealBuilding(iBuilding, 1);
end
I found the former code to not consistently fire for some reason... am now going to try the latter in autoplay to see if I get better results. Hopefully, it will fire more reliably.