Post: max weapon check
10-03-2015, 11:01 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); how do i make a check that sees if i already have 2 weapons on me it drops my current weapon im holding like this

    if(self has 2 weapons already)
{
drop current weapon;
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-03-2015, 11:09 PM #2
jwm614
NextGenUpdate Elite
Originally posted by OfficialCoolJay View Post
how do i make a check that sees if i already have 2 weapons on me it drops my current weapon im holding like this

    if(self has 2 weapons already)
{
drop current weapon;
}


getcurrentweapon
getcurrentoffhand
10-03-2015, 11:38 PM #3
like this?

    self.currentWeapon = self GetCurrentWeapon();
self.currentoffhand = self GetCurrentOffHand();

if(self.currentoffhand == true)
{
self dropItem(self.currentWeapon);
}
10-04-2015, 06:06 PM #4
Humble
Little One
Originally posted by OfficialCoolJay View Post
like this?

    self.currentWeapon = self GetCurrentWeapon();
self.currentoffhand = self GetCurrentOffHand();

if(self.currentoffhand == true)
{
self dropItem(self.currentWeapon);
}


Yo with the amount of questions you be asking you better be making a dank a$$ menuKryptus
10-04-2015, 06:32 PM #5
Loz
Vault dweller
Originally posted by OfficialCoolJay View Post
how do i make a check that sees if i already have 2 weapons on me it drops my current weapon im holding like this

    if(self has 2 weapons already)
{
drop current weapon;
}


loz = self getWeaponsListPrimaries();
if(loz.size > 2) self takeWeapon(self getCurrentWeapon());

The following user thanked Loz for this useful post:

OfficialCoolJay
10-05-2015, 01:55 AM #6
Originally posted by Loz View Post
loz = self getWeaponsListPrimaries();
if(loz.size > 2) self takeWeapon(self getCurrentWeapon());


works bro thanks Smile
10-05-2015, 04:36 AM #7
Adrian
Adrian is back!
Originally posted by OfficialCoolJay View Post
works bro thanks Smile


Question has been answered. If you have any other questions feel free to make another thread.

-Thread Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo