Announcement

Collapse
No announcement yet.

Question about configs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    dude thanxs! i was just looking up some info on configs at udn. their stuff makes sense but atleast you show how to apply it.

    thanks man!

    Leave a comment:


  • replied
    You can do it like this:
    Class'MyClass'.Default.MyConfigVariable = "Some value";
    Class'MyClass'.Static.StaticSaveConfig();

    Leave a comment:


  • replied
    oh... i never thought of that. thanks man.

    so would i be cool doing the SaveConfig(MyClassName) anywhere? so i dont need an instance of the class at all..

    thats awesome if so. thanks.

    Leave a comment:


  • replied
    Any saved data in any class can be accessed through default:
    Class'MyClass'.Default.MyConfigVariable
    So it dosen't really matter where you put your config in.

    Leave a comment:


  • started a topic Question about configs

    Question about configs

    i have just recently found out about config variables, so that you can save info out to the ini files. but im wondering where its best to do this.

    i want to have players select between three factions to play as, save that info and reference that when they are spawning into the level, and remain persistent to the next levels which may be with in one sitting of playing the game.

    so my question is what exists at all times that i can have these config variables defined and saved into? i m not sure if playercontroller exist when you are in the gui main menu, but neither does a game type or a level info as far as i know... any info would be nice.
Working...
X