-Edited-
Sorry about the double post.. I thought I edited this post, instead of making a new one :/ Last edited by Frontlines on Thu May 26, 2011 12:45 am; edited 1 time in total QUICK_EDIT
I'll assume you already have you .INI files extracted
Open up your "Commandbutton.INI"
and add this code.
Code:
CommandButton Command_ConstructGLAInfantryStinger
Command = UNIT_BUILD
Object = GLAInfantryStingerSoldier
TextLabel = CONTROLBAR:ConstructAmericaInfantryRanger ;;You can create a new string and place here, for now, it's using the AmericaInfantryRanger text string
ButtonImage = SARanger ;; This is the icon for the American Ranger
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildRanger
End
Now.. you made a button that'd create a GLA Stinger Soldier.
Next thing to do, is place that button somewhere.
Save your commandbuttons and close it.
and add "12 = Command_ConstructGLAInfantryStinger" without quotations.
Now.. Upon researching this a tad, I noticed that the Stinger is no longer selectable. Thus, this will require further modding.
Once done with the commandset, save and close it.
Go to the "Objects" Folder and find the "GLAInfantry.INI" File and open it.
Find the GLAInfantryStingerSoldier part
and scroll down to
Code:
; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf =
Now, after the "KindOf = " You'll see a bunch of things.. now.. Im not gonna fully test this, I don't know what other problems will incur, but simply, just add "SELECTABLE" Into that list, no quotations, and voila.
I don't know what else is disabled and such, but for the most part, you just added a button that allowed the construction of the Stinger soldier, and then added that button to a building. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum