global setDir on attachTo

This commit is contained in:
commy2 2015-03-25 20:45:47 +01:00
parent 3634eaf568
commit 01b7d3b213
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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);