mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use new get item and object config CBA functions, deprecate ACE functions
This commit is contained in:
parent
391191241b
commit
d35e89892c
@ -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"};
|
||||
|
@ -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"};
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
params ["_item"];
|
||||
|
||||
private _cfgType = [_item] call FUNC(getConfigType);
|
||||
private _cfgType = [_item] call CBA_fnc_getItemConfig;
|
||||
|
||||
if (_cfgType == "") exitWith {["", ""]};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user