Search the Community
Showing results for tags 'removeitems'.
Found 2 results
-
Guys please if someone can do a quick test of what is happening with such a simple command? is it broken or what? No error, RPT is empty, tested every possible variant: player removeItems "rvg_money"; R01 removeItems "rvg_money"; {_unit = _x; {_unit removeItems _x} forEach ["rvg_money"]} forEach (allUnits select {!isPlayer _x}); both single and multiplayer and nothing happens!? Command removeItem works normally, but of course, as you know it removes only one item from any unit inventory storage starting from uniform, but if there are 10 items I need to run code 10 times to remove all. It is not resolving the problem because the items that the unit is carrying are obtained from one part of the mission and carried over to another phase of the operation so I don't know how many of the items the unit will carry, but I need him to be "clean" of that specific item at all so the only way is to run code thousand times to be sure - what is not cool at all. I am so sad that I need to create a new topic for such a small problem but I don't see any other way also I need it urgent to be served tonight and nobody of my dudes can't test it on another computer right now so please if anyone can do this or knows the other solution. Thanks in advance
- 3 replies
-
- removeitems
- problem
-
(and 1 more)
Tagged with:
-
Hello everyone, and thank you for taking the time. As the title suggests this is what I am trying to work out and I have been trying to learn and figure this out on my own for almost two weeks now. I have done many different tests and workarounds but not managed to solve it; What I am trying to create is a script that when any and all AI is killed, pre-placed or spawned, all numbers of a specific inventory item .. in this case first aid kits are removed. I don't want any of the enemies to have any first aid kits at all. In my case as a Zeus, I want to manage the number of first aid kits given to players on my own and that they will not loot them on bodies for themselves. - removeItem command solves the issue, but it also removes many other items. - removeItem(s) has not worked out during my testing either. - removeAssignedItems is not what I am looking for either. Some different attempts so far which has not worked: { if (!isPlayer _x) then { _x removeItems "vn_o_item_firstaid_01"; _x removeItems "vn_b_item_firstaid_01"; _x removeItems "vn_o_item_firstaidkit"; _x removeItems "vn_b_item_firstaidkit"; _x removeItems "Item_FirstAidKit"; }; } foreach (allUnits); if (faction _killed == "O_PAVN") then { removeItems "vn_o_item_firstaid_01" _killed; removeItems "vn_b_item_firstaid_01" _killed; removeItems "vn_o_item_firstaidkit" _killed; removeItems "vn_b_item_firstaidkit" _killed; removeItems "Item_FirstAidKit" _killed; deleteVehicle (nearestObject [_killed, "WeaponHolderSimulated"]); }; Any feedback is appreciated!
- 7 replies
-
- first aid kit
- inventory
-
(and 5 more)
Tagged with: