Jump to content

Recommended Posts

How can I go about creating a custom config file to store values for my script to call onto? And eliminate variable definitions

completely from outside the script, instead just plug and play?

e

e.g could I do this?

class RSSysParams  {
 class InitialWeather
    {
        title = "Initial weather";
        values[] = {0,1,2,3,4,5};
        texts[] = {"Clear","Sunny","Cloudy","Foggy","Stormy","Severe"};
        default = 2;
    };
};

_config = configFile "RSSysParams\InitialWeather";
_configEntry = getArray (_config); 
?


nvm reverse engineering Altis Life showed me how to do it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×