BASE fnc getcfgvalue

From Desolation REDUX Wiki
Jump to navigation Jump to search

Description[edit]

Returns the value, as a String, of an element within the specified plugins config file.

Syntax[edit]

Syntax

[key,tag] call BASE_fnc_getCfgValue

Parameters

key: String - The config key to pull the value from.
tag: String - The plugin tag. Defined in the plugin's config.cpp header.

Return Value

String - String representation of the config value

Examples[edit]

Example 1:

if(toLower(["Enabled","HOL"] call BASE_fnc_getCfgValue) == "true") then { };

Additional Information[edit]

Execution: Call

See Also: APMS Specific Functions

Notes[edit]

Data is stored in the bis_functions_mainscope object.