Jump to content
  • 0

Removing


gernika

Question

4 answers to this question

Recommended Posts

  • 0

@gernika  do you say something like...

///structure//
_VariableName = [["Item ID",Amount],["Item ID",amount]] call player_removeItems;
/////////////


_remove= [["CinderBlocks",2],["ItemBloodbag",3]] call player_removeItems;

and if u need check if players have this items:

_hasitem = [["CinderBlocks",2], ["ItemBloodbag",3]] call player_checkItems; 

 

Link to comment
Share on other sites

  • 0

mmm

maybe:

_hastools = ["ItemKnife"] call player_hasTools;
_hasitems1 = ["ItemAntibiotic"] call player_checkItems;
_hasitems2 = ["ItemAntibacterialWipe"] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2}) then {};

or:

_hastools = ["ItemKnife"] call player_hasTools;
_hasitems1 = ["ItemAntibiotic","ItemAntibacterialWipe"] call player_checkItems;
if (call {_hastools} && {_hasitems1} ) then {};

or:

_inventory = items player;
_hastools = "ItemKnife" in _inventory;

or:

if (("ItemAntibiotic" in magazines player) && ("ItemAntibacterialWipe" in magazines player)) then{};

or if u need check current weapons and items:

_Gun = currentWeapon player;
if ((_Gun in ["revolver_EP1","revolver_gold_EP1"]) && ("ItemAntibiotic" in magazines player) && ("ItemAntibacterialWipe" in magazines player))then{};

 

Or you can use negatives.. to exit from the script early:

if !(("ItemAntibiotic" in magazines player) && ("ItemAntibacterialWipe" in magazines player)) exitWith{};
_inventory = items player;
_hastools = "ItemKnife" in _inventory;

if (!_hastools) exitWith{};

 

and that is all i know about it.. maybe thers others ways.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...