Jump to content
Sign in to follow this  
roguetrooper

Delete weapons on ground but keep inventories open

Recommended Posts

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

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

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 by Killzone_Kid
not broken

Share this post


Link to post
Share on other sites
_list = nearestObjects [center,["WeaponHolder"],400];
{clearWeaponCargo _x; clearMagazineCargo _x; clearItemCargo _x} forEach _list;

Share this post


Link to post
Share on other sites
_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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×