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



Introduced in

Version:3.9.0

Description

Description:Returns the full configuration path of an object. Works with objects such as vehicles, humans, buildings, projectiles, weapons, components, and marker lights (V3.9.1+). As of V18.1+ also works with dialog controls.

Syntax

Syntax:configOf object
Parameters:
  • object: Object - The object whose configuration class you want to get.
Return Value:Config - The configuration of the object.

Alternative Syntax

Syntax:configOf control (V18.1.0+)
Parameters:
Return Value:Config - The control configuration path.

Examples


Examples:

_configPath = configOf _weaponObject; _configPath == bin\config.bin/CfgWeapons/vbs_rifle

_configPath = configOf _weaponComponent; _configPath == bin\config.bin/CfgComponents/vbs_optics

_configPath = configOf (getMarkerLights "light01" select 0) // V3.9.1+

_configPath = configOf cursorTarget == bin\config.bin/CfgVehicles/bin\config.cpp/CfgVehicles/VBS2_US_ARMY_JTAC_OCP_M_medium_iotv_none_M4A1RCO // V3.9.1+

_configPath = configOf (map displayCtrl 51) // V18.1

Notes