Originally Posted by: adrianemapmaker Probably you forgot adding productionupdate module
Iirc it is required on object that use upgrades
haw i can add it ?
this is codes i have been add it
;-----------------------------------------------------------
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY EuKFnukeBombWeapon2B2
PreferredAgainst = PRIMARY VEHICLE STRUCTURE
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
Behavior = WeaponSetUpgrade ModuleTag_03
TriggeredBy = Upgrade_EuKFnukeBombWeapon2B2
End
Behavior = CommandSetUpgrade ModuleTag_25
CommandSet = AmericaJetRaptorCommandSet
TriggeredBy = Upgrade_EuKFnukeBombWeapon2B2
End
;--------------------------------------------------------------------
CommandButton Command_EuKFnukeBombWeapon2B2
Command = OBJECT_UPGRADE
Upgrade = Upgrade_EuKFnukeBombWeapon2B2
Options = OK_FOR_MULTI_SELECT NOT_QUEUEABLE
TextLabel = CONTROLBAR:EuKFnukeBombWeapon2B2
ButtonImage = nuclearsymbol
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:EuKFnukeBombWeapon2B2
End
;----------------------------------------------------------------------
Upgrade Upgrade_EuKFnukeBombWeapon2B2
Type = OBJECT
BuildTime = 50.0
BuildCost = 10000
ButtonImage = nuclearsymbol
UnitSpecificSound = OverlordExpansion
End
;----------------------------------------------------------------------
CommandSet AmericaJetCommandSet
10 = Command_GuardFlyingUnitsOnly
11 = Command_AttackMove
12 = Command_EuKFnukeBombWeapon2B2
13 = Command_Guard
14 = Command_Stop
End
;----------------------------------------------------------------------
Edited by user Sunday, December 8, 2019 11:26:24 PM(UTC)
| Reason: Not specified