use a function to do gestures

This commit is contained in:
commy2
2016-07-12 16:16:01 +02:00
parent de612d9613
commit 8a4514f8e7
26 changed files with 69 additions and 37 deletions

View File

@ -26,7 +26,7 @@ private _inBuilding = [_unit] call FUNC(isObjectOnObject);
if !(_unit getVariable ["ACE_isUnconscious", false]) then {
// play release animation
_unit playAction "released";
[_unit, "released"] call EFUNC(common,doGesture);
};
// prevent collision damage

View File

@ -39,7 +39,9 @@ _unit selectWeapon primaryWeapon _unit;
[_unit, _target, true] call EFUNC(common,claim);
// can't play action that depends on weapon if it was added the same frame
[{_this playActionNow "grabDrag";}, _unit] call CBA_fnc_execNextFrame;
[{
[_this, "grabDrag"] call EFUNC(common,doGesture);
}, _unit] call CBA_fnc_execNextFrame;
// move a bit closer and adjust direction when trying to pick up a person
if (_target isKindOf "CAManBase") then {