Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Returns the root of the classes that are defined in the current mission description.ext (see Scripting with description.ext in the VBS3 Scripting Manual).

This allows the reading of mission settings that cannot be determined in other ways, or the definitions of user dialogs (see Examples).

If values are changed while the mission is being tested in the editor, it has to be reloaded first, before the new values become active.

Syntax

Syntax:missionConfigFile
Parameters:
Return Value:Config-2 - Root of description.ext.

Examples

Examples:
Counts the number of defined CfgIdentities (see CfgIdentities in Scripting with Description.ext in the VBS3 Scripting Manual):
_identities= count (missionConfigFile>>"CfgIdentities");
Returns the Respawn (see Respawn in Scripting with Description.ext in the VBS3 Scripting Manual):
__respawn = getNumber(missionConfigFile>>"respawn")
Returns the IDD definition for the user dialog "Dlg1":
_idd = getNumber(missionConfigFile>>"Dlg2">>"idd")

Additional Information

See also: configFile, getVirtualFilePath
Multiplayer:
Problems:

Notes