configFile – Talk
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
of course that just puts the config file into a variable, manipulating that data is another story.[[User:Hoz|hoz]] | of course that just puts the config file into a variable, manipulating that data is another story.[[User:Hoz|hoz]] | ||
You can get off any information stored in the config (together with the commands [[getText]], [[getNumber]], [[getArray]]). | You can get off any information stored in the config (together with the commands [[getText config|getText]], [[getNumber config|getNumber]], [[getArray config|getArray]]). | ||
Example: | Example: | ||
Revision as of 13:25, 25 March 2007
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)