Posted by: Jedwards - Sunday, February 14, 2010 8:33:24 AM
Ok, well heres what i am trying to do. I'm trying to give aircraft the ability to choose between several weapons while parked at the airfield. The issue I have run into though is that the UPGRADE_WEAPON SET ability will only change from the default weapons set to the upgraded one. so i would only be able to choose between two weapons, this is a fundamental problem that i would really like to solve. REAL aircraft can carry a multitude of weapons and my ultimate goal for modding is to make Generals as realistic as possible.

Posted by: Annihilationzh - Sunday, February 14, 2010 12:18:07 PM
It's somewhat possible, but certainly not easy. My best attempt only worked when the migs were flying, but it worked flawlessly other than that. If I did it at the airfield, the mig would just take off and die. If I did it in the air, it would 'appear' to work just like a nuke cannon.

Posted by: Jedwards - Monday, February 15, 2010 12:11:06 PM
Ok well i think i may have found a way. i have been experimenting with this using the laser missile upgrade at the airfield, it seems to work... yet when i put the upgrade in the command set for the individual object it is grayed out or when i click on it nothing happens. can you guys fiddle with this and see if you get the same results. ;------------------------------------------------ Behavior = ReplaceObjectUpgrade ModuleTag_28 TriggeredBy = [Entry(S) from upgrade.ini] ;FXListUpgrade = [entry from FXList.INI] ;ConflictsWith = [entry(s) from Upgrade.INI] ;RequiresAllTriggers = [Yes/No] ReplaceObject = [Object name] ;------------------------------------------------

Posted by: Annihilationzh - Tuesday, February 16, 2010 12:40:54 AM
Your method will have many bugs (it will cancel all commands, regain full health, lose it's veterancy, deselect it, etc) and I'm not entirely sure if it will stay at the airfield, because it will completely replace the aircraft with another one. You'll need one of these in the code of the aircraft for the button to work: [code] Behavior = ProductionUpdate ModuleTag_XX End [/code] Plus you will need to use an object upgrade, or all of the aircraft will change at once (even in mid-air).