Jump to content
  • 0
Sign in to follow this  
gernika

Removing

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; 

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...