Cargo - Add name to bodybags (#8297)

* cargo: labels

* Update XEH_postInit.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Brett 2021-10-24 15:01:21 -03:00 committed by GitHub
parent 909a38bc59
commit a801d0d3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,3 +153,10 @@ private _objectClassesAddClassEH = call (uiNamespace getVariable [QGVAR(objectCl
{
[_x, "initPost", DFUNC(initObject), nil, nil, true] call CBA_fnc_addClassEventHandler;
} forEach _objectClassesAddClassEH;
if (isServer) then {
["ace_placedInBodyBag", {
params ["_target", "_bodyBag"];
_bodyBag setVariable [QGVAR(customName), [_target, false, true] call EFUNC(common,getName), true];
}] call CBA_fnc_addEventHandler;
};