How to create a non-naval transport unit?

Joined
Feb 6, 2006
Messages
796
Other people also tried that, but I haven't found any answer yet.
I've created two new transport units: a ground unit (a tank), and an air unit (an elichopter).
I've set them similarly to other naval units (like galleys and galleons): UnitAIs ASSAULT_SEA and SETTLER_SEA, and DefaultUnitAI ASSAULT_SEA.
No Way, the AI still seems not to be able to use them.
I've tried to look at the SDK code, looking for the UNITAI_ASSAULT_SEA string, and trying to understand how AI uses naval transports. Actually, it seems that AI only takes into account the UnitAIs, in order to pick the transporting unit to use.
After a couple of hours, I'm still confused, and I've got nowhere. Can anyone give me any hint?
 
No one has figured this out yet. If you do start making progress you'll make a lot of modders happy. Wish I could help you, but C++ is outside my scope, haven't even learned to compile the dll yet. You might want to post your progress in the Better AI project mod forum, alot of modders that mess around with the AI check those, and you're more likely to get insight from people who are actually tweaking the AI code in the SDK in those forums.
 
Look at Fall From Heaven 2 and even Colonization 2; both have implemented this. FFH2 has scouts that can transport birds while colonization has wagons that can transport goods. I think the problem will be that in both cases only a special class of unit can be transported - which cannot be the same class as the transporter (i.e., a LAND unit cannot transport another LAND unit) - and you also cannot stack transports (water carrying land carrying special).
 
Back
Top Bottom