gernika Posted July 13, 2017 Report Share Posted July 13, 2017 Hello how i can remove more than one items in a single line? its possible? to not use player removemagazine ""; twice. Link to comment Share on other sites More sharing options...
0 juandayz Posted July 13, 2017 Report Share Posted July 13, 2017 @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; gernika and Hooty 2 Link to comment Share on other sites More sharing options...
0 gernika Posted July 13, 2017 Author Report Share Posted July 13, 2017 THank you a lot. Yes this is perfect. Another quest.. is thers others ways to check items? Just to learn. Link to comment Share on other sites More sharing options...
0 juandayz Posted July 13, 2017 Report Share Posted July 13, 2017 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. gernika 1 Link to comment Share on other sites More sharing options...
0 gernika Posted July 13, 2017 Author Report Share Posted July 13, 2017 Well this is a lot for me. Thank you so much friend. Muchss gracias Link to comment Share on other sites More sharing options...
Question
gernika
Hello how i can remove more than one items in a single line? its possible? to not use player removemagazine ""; twice.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now