roguetrooper 2 Posted August 31, 2014 In a MP map I want to delete weapons that currently lie on the ground. Unfortunately this also closes player inventories. _list = nearestObjects [center,["WeaponHolder"],400]; {deletevehicle _x} forEach _list; Does anybody know a way to keep currently opened inventories open? (Remember: MP map, a simple distance check to "the" player wouldn't make sense). Share this post Link to post Share on other sites
killzone_kid 1332 Posted August 31, 2014 _list = nearestObjects [center,["WeaponHolderSimulated"],400]; Share this post Link to post Share on other sites
roguetrooper 2 Posted August 31, 2014 Thanks for your reply, but unfortunately "WeaponHolderSimulated" does not remove any equippable item on the ground at all. Share this post Link to post Share on other sites
killzone_kid 1332 Posted August 31, 2014 (edited) Then you need to assign inventory EH to every unit and mark weaponholder when unit accesses it. This way you can filter the ones you don't want to delete. The problem is that inventory EH just got broken :( Edited September 4, 2014 by Killzone_Kid not broken Share this post Link to post Share on other sites
Kushluk 21 Posted August 31, 2014 _list = nearestObjects [center,["WeaponHolder"],400]; {clearWeaponCargo _x; clearMagazineCargo _x; clearItemCargo _x} forEach _list; Share this post Link to post Share on other sites
roguetrooper 2 Posted September 1, 2014 _list = nearestObjects [center,["WeaponHolder"],400]; {clearWeaponCargo _x; clearMagazineCargo _x; clearItemCargo _x} forEach _list; Thanks, this did the trick. Share this post Link to post Share on other sites