mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
global setDir on attachTo
This commit is contained in:
parent
3634eaf568
commit
01b7d3b213
@ -44,7 +44,7 @@ if (_target isKindOf "CAManBase") then {
|
||||
_target attachTo [_unit, _position];
|
||||
|
||||
};
|
||||
_target setDir _direction;
|
||||
["setDir", _target, [_target, _direction]] call EFUNC(common,targetEvent);
|
||||
|
||||
_unit setVariable [QGVAR(isCarrying), true, true];
|
||||
_unit setVariable [QGVAR(carriedObject), _target, true];
|
||||
|
@ -31,7 +31,7 @@ _position = _position vectorAdd [0, 0, _offset];
|
||||
|
||||
// attach object
|
||||
_target attachTo [_unit, _position];
|
||||
_target setDir _direction;
|
||||
["setDir", _target, [_target, _direction]] call EFUNC(common,targetEvent);
|
||||
|
||||
if (_target isKindOf "CAManBase") then {
|
||||
[_target, "AinjPpneMrunSnonWnonDb_still", 0, true] call EFUNC(common,doAnimation);
|
||||
|
Loading…
Reference in New Issue
Block a user