isClass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "config / name" to "a / b") |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on March ([0-9]{1})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-0$1") |
||
Line 33: | Line 33: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2007-03-02 - 01:17</dd> | ||
<dt class="note">[[User:Kronzky|Kronzky]]</dt> | <dt class="note">[[User:Kronzky|Kronzky]]</dt> | ||
<dd class="note">This command allows you to check for the presence of an addon. | <dd class="note">This command allows you to check for the presence of an addon. |
Revision as of 23:05, 13 May 2023
Description
- Description:
- Check if config entry represents config class.
- Groups:
- Config
Syntax
Examples
- Example 1:
- Result is true.
Additional Information
- See also:
- configFile a / b configName count getArray getText getNumber inheritsFrom isArray isNumber isText select
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
- Posted on 2007-03-02 - 01:17
- Kronzky
- This command allows you to check for the presence of an addon. isClass (configFile >> "cfgVehicles" >> "MyCustomCar") will return true if the addon "MyCustomCar" is installed, and false if it is not installed. You will have to know under which class the addon is categorized (in this case "cfgVehicles") to be able to use the right config path.
- Posted on Mar 31, 2014 - 15:45
- ffur2007slx2_5
-
(Arma 3 ver 1.14) According to BI Dev Karel Mořický, BIS_fnc_getCfgIsClass provides a comfortable workaround with custom config under description.ext compared with isClass. (But as a function created specifically for A3 campaign, it is in no way intended as a replacement for isClass. So it is not suggested to use it for configFile classes. But isClass instead.)
E.g.
["Something1","Something2","Something3"] call BIS_fnc_getCfgIsClass<br> //Same as isClass (missionconfigfile >> "Something1" >> "Something2" >> "Something3")
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Config