Advertisement
SharpSabre

KeyUp - merge

Dec 5th, 2022
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.89 KB | Gaming | 0 0
  1. //Dual Arms Start
  2.                 private _dialog = uiNameSpace getVariable ["RscDisplayInventory", displayNull];
  3.                 if (secondaryWeapon player != "") then
  4.                 {
  5.                 if (((secondaryWeapon player) splitString "_") select ((count ((secondaryWeapon player) splitString "_"))-1) == "secondary") then
  6.                     {
  7.                         if(!(SecondaryWeaponsSwapping) && (_dialog isEqualTo displayNull)) then
  8.                         {
  9.                             (primaryWeapon player) spawn SecondaryWeapons_events_swapSecondaryWeapon;
  10.                         };
  11.                     } else {
  12.                     if (secondaryWeapon player != currentWeapon player) then
  13.                     {
  14.                         player selectWeapon (secondaryWeapon player);
  15.                     };
  16.                 };
  17.                 } else {
  18.                     if (primaryWeapon player != "") then
  19.                     {
  20.                         if(!(SecondaryWeaponsSwapping) && (_dialog isEqualTo displayNull)) then
  21.                         {
  22.                             (primaryWeapon player) spawn SecondaryWeapons_events_addSecondaryWeapon;
  23.                         };
  24.                     };
  25.                 };
  26.                 //Dual Arms End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement