bug fixes from dedicated testing
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
if ( !hasInterface ) exitWith {};
|
||||
|
||||
[
|
||||
"17th Battalion",
|
||||
QUOTE(MODULE_CATEGORY_NAME),
|
||||
"Create Resupply Box",
|
||||
{
|
||||
params [["_pos", [0,0,0], [[]], 3], ["_target", objNull, [objNull]]];
|
||||
// get parent definition
|
||||
private _supplyCratesCfg = call milsim_resupply_fnc_getSupplyCratesCfg;
|
||||
private _supplyCratesCfg = call EFUNC(resupply,getSupplyCratesCfg);
|
||||
// get the subclass names
|
||||
private _boxTypesAvailable = _supplyCratesCfg call BIS_fnc_getCfgSubClasses;
|
||||
|
||||
@@ -36,11 +38,17 @@ if ( !hasInterface ) exitWith {};
|
||||
_args params ["_pos", "_target", "_keysSorted"];
|
||||
|
||||
|
||||
private _box = [_target, _typeOptionSelected, _pos] call milsim_resupply_fnc_createBox;
|
||||
private _box = [_target, _typeOptionSelected, _pos] call EFUNC(resupply,createBox);
|
||||
if (isNull _box) exitWith {
|
||||
["Resupply Box", "WARNING: Failed to locate or create box!"] call BIS_fnc_curatorHint;
|
||||
};
|
||||
["Resupply Box", format["Created box from class %1", _typeOptionSelected]] call BIS_fnc_curatorHint;
|
||||
[
|
||||
"Resupply Box",
|
||||
format[
|
||||
"Created %1",
|
||||
getText((call EFUNC(resupply,getSupplyCratesCfg)) >> _typeOptionSelected >> "displayName")
|
||||
]
|
||||
] call BIS_fnc_curatorHint;
|
||||
},
|
||||
{},
|
||||
[_pos, _target]
|
||||
@@ -50,7 +58,7 @@ if ( !hasInterface ) exitWith {};
|
||||
|
||||
|
||||
[
|
||||
"17th Battalion",
|
||||
QUOTE(MODULE_CATEGORY_NAME),
|
||||
"Grounds Cleanup",
|
||||
{
|
||||
params [["_pos", [0,0,0], [[]], 3], ["_target", objNull, [objNull]]];
|
||||
|
||||
Reference in New Issue
Block a user