mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Attach - Follow bone rotation for attached items (#8477)
This commit is contained in:
parent
94c62d8ed3
commit
7bf9f3112e
@ -38,7 +38,7 @@ private _onAttachText = format [localize LSTRING(Item_Attached), _onAttachText];
|
|||||||
|
|
||||||
if (_unit == _attachToVehicle) then { //Self Attachment
|
if (_unit == _attachToVehicle) then { //Self Attachment
|
||||||
private _attachedItem = _itemVehClass createVehicle [0,0,0];
|
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 {
|
if (!_silentScripted) then {
|
||||||
_unit removeItem _itemClassname; // Remove item
|
_unit removeItem _itemClassname; // Remove item
|
||||||
[_onAttachText, 2] call EFUNC(common,displayTextStructured);
|
[_onAttachText, 2] call EFUNC(common,displayTextStructured);
|
||||||
|
Loading…
Reference in New Issue
Block a user