Replace vanilla items with ours.

This commit is contained in:
KoffeinFlummi 2015-03-21 21:59:08 +01:00
parent 8fac4b5798
commit f6f910fb8a
3 changed files with 14 additions and 0 deletions

View File

@ -42,3 +42,11 @@ class Extended_Local_EventHandlers {
};
};
};
class Extended_Take_EventHandlers {
class CAManBase {
class ADDON {
take = QUOTE(call FUNC(itemCheck));
};
};
};

View File

@ -46,6 +46,7 @@ PREP(init);
PREP(isInMedicalFacility);
PREP(isMedic);
PREP(isMedicalVehicle);
PREP(itemCheck);
PREP(onMedicationUsage);
PREP(onWoundUpdateRequest);
PREP(onPropagateWound);

View File

@ -74,3 +74,8 @@ _logs = _unit getvariable [QGVAR(allLogs), []];
_unit setvariable [_x, nil, true];
} foreach _logs;
_unit setvariable [QGVAR(allLogs), [], true];
// items
[{
_this call FUNC(itemCheck);
}, [_unit], 0.5, 0.1] call EFUNC(common,waitAndExecute);