View Single Post
Old 03-06-2004, 05:37 PM   #2 (permalink)
CodeCat
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

There is a way, but it's slightly more complicated.

I assume you used the Ranger/Scud Launcher method for switching weapons. Well forget that. Just make an upgrade (with a cost and build time of 0), and when you click the weapon switch button, you upgrade the unit. And the upgrade affects both the weapon set (WeaponSetUpgrade) and locomotor (LocomotorSetUpgrade). But, something you also need to do, is upgrade the CommandSet (CommandSetUpgrade). The CommandSet upgrade also lets you remove an upgrade. So what you do, is have one button upgrade the unit, and also update the CommandSet (so one button is replaced with the other). Then the other button removes the upgrade, so the unit reverts back to its original state, and it also switches the CommandSet back to the original one.
CodeCat is offline   Reply With Quote