mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixed script error when performing treatment with secondary weapon selected
This commit is contained in:
parent
57b093f845
commit
c174ccf396
@ -94,6 +94,12 @@ _callerAnim = [getText (_config >> "animationCaller"), getText (_config >> "anim
|
|||||||
if (_caller == _target) then {
|
if (_caller == _target) then {
|
||||||
_callerAnim = [getText (_config >> "animationCallerSelf"), getText (_config >> "animationCallerSelfProne")] select (stance _caller == "PRONE");
|
_callerAnim = [getText (_config >> "animationCallerSelf"), getText (_config >> "animationCallerSelfProne")] select (stance _caller == "PRONE");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Cannot use secondairy weapon for animation
|
||||||
|
if (currentWeapon _caller == secondaryWeapon _caller) then {
|
||||||
|
_caller selectWeapon (primaryWeapon _caller);
|
||||||
|
};
|
||||||
|
|
||||||
_wpn = ["non", "rfl", "pst"] select (["", primaryWeapon _caller, handgunWeapon _caller] find (currentWeapon _caller));
|
_wpn = ["non", "rfl", "pst"] select (["", primaryWeapon _caller, handgunWeapon _caller] find (currentWeapon _caller));
|
||||||
_callerAnim = [_callerAnim, "[wpn]", _wpn] call CBA_fnc_replace;
|
_callerAnim = [_callerAnim, "[wpn]", _wpn] call CBA_fnc_replace;
|
||||||
if (vehicle _caller == _caller && {_callerAnim != ""}) then {
|
if (vehicle _caller == _caller && {_callerAnim != ""}) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user