getMissionConfig: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=")
m (Text replacement - "\|" to "|")
Line 16: Line 16:
| '''getMissionConfig''' attribute
| '''getMissionConfig''' attribute
|p1= attribute: [[String]] - attribute name
|p1= attribute: [[String]] - attribute name
\|r1= [[Config]]
|r1= [[Config]]


\|x1= <code>_header = [[getMissionConfig]] "Header"</code>
|x1= <code>_header = [[getMissionConfig]] "Header"</code>
Returns scenario header config. Replaces the previous approach which would scan only the external ''Description.ext'' file, but ignore the value set in the Eden Editor:
Returns scenario header config. Replaces the previous approach which would scan only the external ''Description.ext'' file, but ignore the value set in the Eden Editor:
<code>_header = [[missionConfigFile]] >> "Header"; // Old approach</code>
<code>_header = [[missionConfigFile]] >> "Header"; // Old approach</code>

Revision as of 11:30, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
ConfigMission Information

Syntax

Syntax:
Syntax needed
Parameters:
attribute: String - attribute name
Return Value:
Config

Examples

Example 1:
_header = getMissionConfig "Header" Returns scenario header config. Replaces the previous approach which would scan only the external Description.ext file, but ignore the value set in the Eden Editor: _header = missionConfigFile >> "Header"; // Old approach

Additional Information

See also:
getMissionConfigValuemissionConfigFile

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