武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Check if config entry represents config class.

基本句法

句法:
Boolean = isClass config
参数:
config: Config
返回值:
Boolean

范例

范例1:
_ok = isClass (configFile >> "CfgVehicles"); Result is true.

额外资讯

多人游戏:
-
也可以看看:
configFileconfig/nameconfigNamecountgetArraygetTextgetNumberinheritsFromisArrayisNumberisTextselect

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on March 2, 2007 - 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
(ArmA3 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
//Same as isClass (missionconfigfile >> "Something1" >> "Something2" >> "Something3")

Bottom Section

Advertisement