Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Dual Arms Start
- private _dialog = uiNameSpace getVariable ["RscDisplayInventory", displayNull];
- if (secondaryWeapon player != "") then
- {
- if (((secondaryWeapon player) splitString "_") select ((count ((secondaryWeapon player) splitString "_"))-1) == "secondary") then
- {
- if(!(SecondaryWeaponsSwapping) && (_dialog isEqualTo displayNull)) then
- {
- (primaryWeapon player) spawn SecondaryWeapons_events_swapSecondaryWeapon;
- };
- } else {
- if (secondaryWeapon player != currentWeapon player) then
- {
- player selectWeapon (secondaryWeapon player);
- };
- };
- } else {
- if (primaryWeapon player != "") then
- {
- if(!(SecondaryWeaponsSwapping) && (_dialog isEqualTo displayNull)) then
- {
- (primaryWeapon player) spawn SecondaryWeapons_events_addSecondaryWeapon;
- };
- };
- };
- //Dual Arms End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement