Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Introduced in

Version:3.4

Description

Description:Checks if an addon exists, based on the presence of its name in the CfgPatches class.

If the checked addon does not exist, a warning dialog is displayed.

Syntax

Syntax:[addonName] call fn_vbs_addonExists
Parameters:
  • addonName: String - The name of the addon.
Return Value:Boolean -
True
Returns true if the addon exists, false otherwise.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
_ret = ["vbs2_weapons_launchers_miclic_exclusive"] call fn_vbs_addonExists

Additional Information

See also: getAddonLocation, getVirtualFilePath
Multiplayer: 
Problems: 

Notes