mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cargo - Add name to bodybags (#8297)
* cargo: labels * Update XEH_postInit.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
parent
909a38bc59
commit
a801d0d3c6
@ -153,3 +153,10 @@ private _objectClassesAddClassEH = call (uiNamespace getVariable [QGVAR(objectCl
|
|||||||
{
|
{
|
||||||
[_x, "initPost", DFUNC(initObject), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
[_x, "initPost", DFUNC(initObject), nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
} forEach _objectClassesAddClassEH;
|
} 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;
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user