Use new get item and object config CBA functions, deprecate ACE functions

This commit is contained in:
jonpas 2016-05-22 15:36:31 +02:00
parent 391191241b
commit d35e89892c
3 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@
*/
#include "script_component.hpp"
ACE_DEPRECATED("ace_common_fnc_getConfigType","3.8.0","CBA_fnc_getItemConfig");
params ["_item"];
if (isClass (configFile >> "CfgWeapons" >> _item)) exitWith {"CfgWeapons"};

View File

@ -12,6 +12,8 @@
*/
#include "script_component.hpp"
ACE_DEPRECATED("ace_common_fnc_getConfigTypeObject","3.8.0","CBA_fnc_getObjectConfig");
params ["_object"];
if (isClass (configFile >> "CfgVehicles" >> _object)) exitWith {"CfgVehicles"};

View File

@ -15,7 +15,7 @@
params ["_item"];
private _cfgType = [_item] call FUNC(getConfigType);
private _cfgType = [_item] call CBA_fnc_getItemConfig;
if (_cfgType == "") exitWith {["", ""]};