I am very new to modding but really start to learn
I have added a carpet bomber to the gla commander but once i purse the power it wont show in the sidebar
So if someone can please help me.
Here is my code for it
CommandButton.ini
CommandButton Command_PurchaseScienceGlaCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_GlaCarpetBomb
ButtonImage = SSCarpetBomb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End
CommandButton Command_GlaCarpetBomb
Command = SPECIAL_POWER
SpecialPower = SuperweaponGlaCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:GlaCarpetBomb
ButtonImage = SNCBomber
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End
CommandButton Command_GlaCarpetBombFromShortcut
Command = SPECIAL_POWER_FROM_SHORTCUT
SpecialPower = SuperweaponGlaCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = OBJECT:GlaCarpetBomb
ButtonImage = SNCBomber
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipCarpetBomb
End
Science.ini
Science SCIENCE_GlaCarpetBomb
PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank3
SciencePurchasePointCost = 7
IsGrantable = Yes
DisplayName = SCIENCE:ChinaCarpetBomb
Description = CONTROLBAR:ToolTipChinaScienceCarpetBomb
End
Specialpower .ini
SpecialPower SuperweaponGlaCarpetBomb
Enum = SPECIAL_CHINA_CARPET_BOMB
ReloadTime = 240000 ; in milliseconds
RequiredScience = SCIENCE_ChinaCarpetBomb
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 180
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End
ObjectCreationlist.ini
ObjectCreationList SUPERWEAPON_GlaCarpetBomb
DeliverPayload
Transport = GLAJetCargoPlane
FormationSize = 12
FormationSpacing = 35.0
StartAtPreferredHeight = Yes
StartAtMaxSpeed = Yes
MaxAttempts = 1
DropOffset = X:0 Y:0 Z:-2
DropVariance = X:30 Y:40 Z:0
DropDelay = 300 ;500 ; time in between each item dropped (if more than one)
Payload = ChinaCarpetBomb 10
DeliveryDistance = 350
DeliveryDecalRadius = 180
DeliveryDecal
Texture = SCCCarpBomb
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
Commandset.ini
CommandSet GLACommandCenterCommandSet
1 = Command_ConstructGLAWorker
4 = Command_GPSScrambler
5 = Command_Ambush
6 = Command_EmergencyRepair
7 = Command_AnthraxBomb
8 = Command_SneakAttack
9 = Command_GlaCarpetBomb
13 = Command_SetRallyPoint
14 = Command_Sell
End
CommandSet SCIENCE_GLA_CommandSetRank3
1 = Command_PurchaseScienceHijacker
4 = Command_PurchaseScienceRebelAmbush1
5 = Command_PurchaseScienceRebelAmbush2
6 = Command_PurchaseScienceRebelAmbush3
7 = Command_PurchaseScienceCashBounty1
8 = Command_PurchaseScienceCashBounty2
9 = Command_PurchaseScienceCashBounty3
10 = Command_PurchaseScienceEmergencyRepair1
11 = Command_PurchaseScienceEmergencyRepair2
12 = Command_PurchaseScienceEmergencyRepair3
13 = Command_PurchaseScienceGlaCarpetBomb
END
CommandSet SpecialPowerShortcutGLA
1 = Command_AmbushFromShortcut
2 = Command_EmergencyRepairFromShortcut
3 = Command_AnthraxBombFromShortcut
4 = Command_ScudStormFromShortcut
5 = Command_RadarVanScanFromShortcut
6 = Command_SneakAttackFromShortcut
7 = Command_GPSScramblerFromShortcut
8 = Command_GlaCarpetBombFromShortcut
END
Factionbuilding.ini
Behavior = OCLSpecialPower ModuleTag_23
SpecialPowerTemplate = SuperweaponGlaCarpetBomb
OCL = SUPERWEAPON_GlaCarpetBomb
CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
End
End
i apprectied if someone help me but i have no clue
justin