configFile – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (upd. links)
 
(4 intermediate revisions by 3 users not shown)
Line 4: Line 4:


Some more practical examples are needed ...
Some more practical examples are needed ...
-----
:An admirable idea, will look forward to your findings in the near future.
:[[User:Planck|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.[[User:Hoz|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. --[[User:Raedor|raedor]] 12:58, 25 March 2007 (CEST)

Latest revision as of 16:02, 2 December 2009

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)