Jedwards
  • Jedwards
  • 51.5% (Neutral)
  • Private Topic Starter
16 years ago
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.
WE FIGHT FOR PEACE!
Sponsor
Annihilationzh
16 years ago
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.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Jedwards
  • Jedwards
  • 51.5% (Neutral)
  • Private Topic Starter
16 years ago
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]
;------------------------------------------------
WE FIGHT FOR PEACE!
Annihilationzh
16 years ago
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:
  Behavior = ProductionUpdate ModuleTag_XX
  End

Plus you will need to use an object upgrade, or all of the aircraft will change at once (even in mid-air).
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.