Deploying units / converting them to other units
Ok, I want to be able to deploy a unit like the Nuke Cannon. The only difference is, my unit has a different weapon for mobile/deployed states. If I tell it to attack ground it will obviously just stay mobile and attack it with primary weapon. So can I make a button that will tell the unit to deploy (so it gets the different weapon)?
And another thing, similar: I want units to turn into other units/buildings like the deploy-style things in Tiberian Sun/RA2. So if you upgrade a unit so it turns into another unit using ReplaceObjectUpgrade (from ZH), will the new unit retain the hitpoints of the original? Or will it just start off as new?
|