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



Introduced in

Version:3.7

Description

Description:Returns the virtual addon path (where, within its addon, the evaluated configuration is located).

Syntax

Syntax:getVirtualFilePath config
Parameters:
  • config: Config-2 - The configuration to evaluate.
Return Value:String - The virtual path inside the addon.

Examples

Examples:
_path = getVirtualFilePath (configFile >> "cfgVehicles" >> "vbs2_cone");
// Returns "vbs2\structures\misc\"
_path = getVirtualFilePath (configFile >> "cfgPatches" >> "bia_sample_uav");
// Returns "vbs2\customer\vehicles\bia_sample_uav\"

Additional Information

See also: getAddonLocation, fn vbs addonExists, cfgPatch
Multiplayer: 
Problems: 

Notes