View Full Version : New Unit! xml-help needed


TegPeg
Mar 13, 2006, 04:32 AM
Hello every one!

I need xml-help for my new unit. I made UH-1 "Huey" helcopter fully animated and I have tested it in game and it works (with all my new animations). I still have to make few adjustements (effects, scaling, better textures and other stuff) but I need help on how to define this new unit in game.

I want it to be able to carry infantry units (1 or 2) into battle in such a way that AI understands to use it same way. Gunships could escort Hueys when they carry Airassault Infantry into combat. UH:s were also crucial in medical evacuation tasks so maybe Heal-promotion would be in place...

What I have done right now is a basic gunship unitinfo so that I could test it in game. All ideas are welcome and examples of xml-would be superb.

Thanks.
TegPeg

PS. I'll edit a screenshot when I have one available.

Ploeperpengel
Mar 13, 2006, 04:43 AM
With the cargo I suppose it's this line:
<iCargo>0</iCargo>
you'll probably have select the number according to the units that you want to transport. But how to affect the Ai? no idea sorry

TegPeg
Mar 13, 2006, 04:56 AM
Yes it's correct line for transporting units but it could carry all DOMAIN_* units which I don't want. Putting a Modern Armor in helicopter would be too heavy. Something need to done to that special cargo tag but what and how far do I have to edit?
AI usage of the unit is also hard since I couldn't find suitable UnitAI tag for it. Transport has UnitAI: ASSAULT_SEA hmm... Is there probaly assault land as well?

Dual
Mar 13, 2006, 06:41 AM
I don't think the game has any AI rules in place for transporting units across land. You'd probably have to write the code yourself. Though you may have to wait for the SDK to come out first to add that kind of thing.

The same deal for creating new rules for what units can board a transport. Right now the choices are just any land unit, or special units (like spies).

IVZanIV
Mar 13, 2006, 04:03 PM
Right, the carrier for instance can only carry fighters which have the
<SPECIALUNIT_FIGHTER>
tag, and the carrier's special cargo is that.