Attach - Follow bone rotation for attached items (#8477)

This commit is contained in:
Dedmen Miller 2021-10-10 16:03:50 +02:00 committed by GitHub
parent 94c62d8ed3
commit 7bf9f3112e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ private _onAttachText = format [localize LSTRING(Item_Attached), _onAttachText];
if (_unit == _attachToVehicle) then { //Self Attachment
private _attachedItem = _itemVehClass createVehicle [0,0,0];
_attachedItem attachTo [_unit, [0.05, -0.09, 0.1], "leftshoulder"];
_attachedItem attachTo [_unit, [0.07, -0.06, 0.085], "leftshoulder", true];
if (!_silentScripted) then {
_unit removeItem _itemClassname; // Remove item
[_onAttachText, 2] call EFUNC(common,displayTextStructured);