Thanks. So all units in the DOMAIN_LAND in the civ4unitinfos.xml file can be airlifted if they fit your other criteria? Very good, this is just what I needed to know.
Okay, I tested this again, and I have 2 units, both DOMAIN_LAND, and one can be airlifted and the other not. Why? Everything else I can see is the same, as far as your other prerequisites go.
Okay, I tested this again, and I have 2 units, both DOMAIN_LAND, and one can be airlifted and the other not. Why? Everything else I can see is the same, as far as your other prerequisites go.
Probably more than you'd like them to be. The best way to do this would be to make an XML tag that makes the unit non-airliftable, or a callback for canAirliftUnit, but that requires an SDK change. Maybe the CCP has such a thing?
Edit: Although, if you're up for it, you could use this tutorial to edit the SDK yourself. That is, if you already have a way to edit the SDK. Then, just find that CvUnit::canAirlift() function and put in:
Code:
if (!GC.getUnitInfo(pUnit->getUnitType()).canBeAirlifted())
{
return false;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.