
Originally Posted by
neai
No it doesn't, that's the whole point of PerObjectConfig.
Ok, I found how to do this :

Originally Posted by
UTLegionsMan.ini
[Hex-Island LegionsManager]
LegionsNames=Aztecs
LegionsNames=Aegyptians
I create a new :
Code:
class LegionsManager extends Object
notplaceable
editinlinenew
PerObjectConfig
config(LegionsMan)
dependson(Legion);
var array<class<Legion> > Legions;
var() config array<string> LegionsNames;
function LoadLegions(){
`log("LEGIONS - Loading legions");
}
in my gametype with the map name as parameter :
Code:
LegionsMan = new(None, WorldInfo.GetMapName()) class'LegionsManager';
But there is three problems :
1- the ini file is in UTGame folder and is renamed UTMyConfigName
2- the map name is the title game in the map info or the file name if there is no title, and they could be different.
3- all are in the same ini file and so may be overriden when installing a new map.
Bookmarks