Tegleg Records

Tegleg Records
Tegleg Records

Thursday, 24 March 2011

UDK Easy Save System

How to save a variable in UDK unreal script.

class Something extends SomethingElse
config(SomeIni); //this points to an ini file where stuff is saved, in this case UDKSomeIni.ini

var config int SomeVar; // putting config allows you to save the variable

//your function where you set and save the variable
function SomeFunction()
{
SomeVar = 20; //give it a value

//SaveConfig() will save whatever variables have config
// it will create UDKSomeIni.ini (if it doesnt exist) and save the variable
SaveConfig();
}


No comments:

Post a Comment

Loading...