BIS fnc loadClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Searches for class in mission, campaign and then in global config file. |= Description
____________________________________________________________________________________________


Description:
| [input, defaultValue] call [[BIS_fnc_loadClass]] |= Syntax
Searches for class in mission, campaign and then in global config file.
Parameter(s):
0: ARRAY of STRINGs - path
1: COFNIG - default path used in case when the original one is not found
Returns:
CONFIG
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= '''input''': [[Array]] of [[String|Strings]] - Containing [[Config|config]] paths  |= Parameter 1
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_loadClass]]; --> |= Syntax
|p2= '''defaultValue''': [[Config]] - Default [[Config|config]] used if '''input''' cannot be found |= Parameter 2


|p1= |= Parameter 1


| |= Return value
| [[Config]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[ ["bin\config.bin"], [[configFile]] >> "Cfg3DEN" >> "Camera"] [[call]] '''BIS_fnc_loadClass'''</code> |=  
 
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
|[[configFile]]|= See also
}}


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 19:15, 14 May 2018

Hover & click on the images for description

Description

Description:
Searches for class in mission, campaign and then in global config file.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[input, defaultValue] call BIS_fnc_loadClass
Parameters:
input: Array of Strings - Containing config paths
defaultValue: Config - Default config used if input cannot be found
Return Value:
Config

Examples

Example 1:
[ ["bin\config.bin"], configFile >> "Cfg3DEN" >> "Camera"] call BIS_fnc_loadClass

Additional Information

See also:
configFile

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note


Notes

Bottom Section