PDA

View Full Version : Mutate Function


SkullKrusher
26th Sep 2005, 11:11 PM
ok this seems to work but i can only enable or disable the bool once and then on next map i can enable or disable only once again is this just the way it is ???

thanks much


//// Enalbe Bool

case "EnableBool":

if ( !BoolStyle )
{
class'ServerMut'.default.BoolStyle = True;
Sender.ClientMessage("Bool Now Enabled");
Sender.ClientMessage("Changes take Effect on Map change / restart");
Log("_________________________");
Log("");
Log(" Bool now Enabled ");
Log("_________________________");
}
class'ServerMut'.static.StaticSaveConfig();

break;

//// Disable Bool

case "DisableBool":

if ( BoolStyle )
{
class'ServerMut'.default.BoolStyle = False;
Sender.ClientMessage("Bool now Disabled");
Sender.ClientMessage("Changes take Effect on Map change / restart");
Log("_________________________");
Log("");
Log(" Bool now Disabled ");
Log("_________________________");
}
class'ServerMut'.static.StaticSaveConfig();

break;

EvilDrWong
5th Dec 2005, 01:22 AM
Hrm... My best guess would be to include changing the BoolStyle for your current actor as well as the default for the class. That, or checking the default value of it instead of that instance's property.


if(default.BoolStyle)

or

if(BoolStyle)
{
BoolStyle=!BoolStyle;
<yadda yadda yadda>
}


I could be wrong though, it's been an incredibly long time ;)