pepsirockstar
12 years ago
tell me what i have to add to this to make a building also garrison Tanks n stuff (example, 1 GLA technical and 5 units in this gastation) (limit this building to 8 unit Slots)

;=======================
StanGasStation02 Mod
;=======================

Object StanGasStation02
CommandSet = StanGasStation02CommandSet
End

CommandSet StanGasStation02CommandSet
1 = Command_StructureExit
2 = Command_StructureExit
3 = Command_StructureExit
4 = Command_StructureExit
5 = Command_StructureExit
6 = Command_StructureExit
7 = Command_StructureExit
8 = Command_StructureExit
11 = Command_StructureExit
12 = Command_Evacuate
14 = Command_Stop
End
Sponsor
acidbrain
12 years ago
Try to add this line to the GarrisonContain module.

AllowInsideKindOf = VEHICLE INFANTRY

Not completely sure if it works but give it a try, am kinda tired atm, brain works at half speed 😛.

The full module looks like this when the line is added.

Behavior = GarrisonContain ModuleTag_03
  ContainMax          = 10
  EnterSound        = GarrisonEnter
  ExitSound         = GarrisonExit
  AllowInsideKindOf = VEHICLE INFANTRY
End

*edit*
If you want it in a map.ini it looks like this.

Object StanGasStation02

ReplaceModule ModuleTag_03
  Behavior = GarrisonContain ModuleTag_03_Override
    ContainMax          = 10
    EnterSound        = GarrisonEnter
    ExitSound         = GarrisonExit
    AllowInsideKindOf = VEHICLE INFANTRY
  End
End
End

Panem et kirkinses
pepsirockstar
12 years ago
sorry to bother you more, but where in my ini do i add it?
acidbrain
12 years ago
Do you want to use it for only 1 map or for a mod?
Panem et kirkinses
pepsirockstar
12 years ago
i can move my INI scripts as i need em, at the moment im working on a GLA cell map, the gasstation is like a cell's operations base ( in each ops building will be a technical, scorpion, or bombtuck with 2 tunnel defenders, a rebel, worker, and 1 of the 3 (Kell, Terrorist, GLASlth Sniper. Mission, harrass China's Forces in Kahzikstan(spellchecks are needed)
acidbrain
12 years ago
Add the attached map.ini to your map, in the map folder where the tga and the map file are.
By using a map.ini you can test if it works.

*edit*
Hmm still can't attach files to a post, w8 a sec.
Panem et kirkinses
pepsirockstar
12 years ago
oh, i know that, i ment, where in the .ini do i put the lines you mentioned
acidbrain
12 years ago
I made a map.ini for you, put it inside your map folder, so the map you made in worldbuilder with your map name.
Here  it is.
You can test if it works now.
Panem et kirkinses
pepsirockstar
12 years ago
your link did not work, sorry.
acidbrain
12 years ago
Strange, just downloaded it myself.
Here  it is again.
Going to bed now, can't keep my eyes open anymore, i'll be here 2morrow if you need some more help.

greetz

*edit*
Did the link or the map.ini not work btw?
Panem et kirkinses
acidbrain
12 years ago
Well, just tested it in a map and it works.
Panem et kirkinses
pepsirockstar
12 years ago
the link is giving me a bad download, can u copy and paste the lines in code here please? and thanks for the help
acidbrain
12 years ago
Go to "Documents and Settings" and open "Command and Conquer Generals Zero Hour Data", open the folder "Maps" and find the map you want to add the map.ini to, open the folder and create a new textdocument and copy/paste the code below in it.

Object StanGasStation02

  ReplaceModule ModuleTag_03
    Behavior = GarrisonContain ModuleTag_03_Override
      ContainMax = 10
      EnterSound = GarrisonEnter
      ExitSound = GarrisonExit
      AllowInsideKindOf = VEHICLE INFANTRY
    End
  End
End
Now use the save as function and name the file map.ini
If you did it right a new document is created with a gear on it, configuration settings.
You can delete the first document you created, there's nothing in it.
If you need help you know where to find me.

Greetz
Panem et kirkinses
pepsirockstar
12 years ago
well, i can safly say the code worked, it took a little toying with it to get it working. (im still learning how to use map INI)