mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix: crate instantly drops when trying to pick up with lowered weapon
This commit is contained in:
@ -22,8 +22,8 @@ if (_unit getVariable [QGVAR(isDragging), false]) then {
|
|||||||
|
|
||||||
if (_unit getVariable [QGVAR(isCarrying), false]) then {
|
if (_unit getVariable [QGVAR(isCarrying), false]) then {
|
||||||
|
|
||||||
// drop carried object when not standing
|
// drop carried object when not standing; also some exceptions when picking up crate
|
||||||
if (stance _unit != "STAND") then {
|
if (stance _unit != "STAND" && {_anim != "amovpercmstpsnonwnondnon"}) then {
|
||||||
private "_carriedObject";
|
private "_carriedObject";
|
||||||
_carriedObject = _unit getVariable [QGVAR(carriedObject), objNull];
|
_carriedObject = _unit getVariable [QGVAR(carriedObject), objNull];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user