mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
properly remove fake weapon, fix grabDrag action with fake weapon
This commit is contained in:
parent
330fc5658f
commit
1071284010
@ -33,6 +33,8 @@ _unit playAction "released";
|
||||
// release object
|
||||
detach _target;
|
||||
|
||||
_unit removeWeapon "ACE_FakePrimaryWeapon";
|
||||
|
||||
// prevent object from flipping inside buildings
|
||||
if (_inBuilding) then {
|
||||
_target setPosASL (getPosASL _target vectorAdd [0, 0, 0.05]);
|
||||
|
@ -37,6 +37,7 @@ _unit selectWeapon primaryWeapon _unit;
|
||||
// prevent multiple players from accessing the same object
|
||||
[_unit, _target, true] call EFUNC(common,claim);
|
||||
|
||||
_unit playActionNow "grabDrag";
|
||||
// can't play action that depends on weapon if it was added the same frame
|
||||
[{_this playActionNow "grabDrag";}, _unit] call EFUNC(common,execNextFrame);
|
||||
|
||||
[FUNC(startDragPFH), 0.2, [_unit, _target, time + 5]] call CBA_fnc_addPerFrameHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user