configFile – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

While this describes the syntax of how to use a configFile, it does not actually describe what information is held withing the configFile ...

I'm sure I can use this information say to find our what weapons the cobra carries, what sort of magazine those weapons use and what say the maximum carry capacity of the cobra is...

Some more practical examples are needed ...


An admirable idea, will look forward to your findings in the near future.
Planck 12:57, 24 March 2007 (CET)
I saw some example that looked like this.
_configImport = configFile >> "CfgNameOfConfig"; 

of course that just puts the config file into a variable, manipulating that data is another story.hoz

You can get off any information stored in the config (together with the commands getText, getNumber, getArray). Example:

getText(configFile >> "CfgVehicles" >> "AH1W" >> "displayName")

For magazines you have to go through the turrets, afair. --raedor 12:58, 25 March 2007 (CEST)