Changing object to bool?Solved
 protected override void LoadDefaultConfig()
        {
            Config["Use Scientists"] = UseScientists = true;
        }

     if (Config["Use Scientists"] = true)
     {
          puts("Using scientists")
     }

I get an error when i try to do this. All i want to do is, when something in config is true, it will allow something to happen. How do i do this?

(bool)Config["Use Scientists"]

This is called casting.

Thanks :)
Locked automatically