Jump to content
engima

How to track used weapons and items left on ground?

Recommended Posts

Is there some way to find all weapons that any player has picked up from an ammo box and left somewhere on the map and remove them?

 

I'm working on a mission with different "sub missions", and I want to control the weapons that will be used in each sub mission. So I remove the ammo and weapon boxes and reset player's loadout after each such sub mission. However, it is still possible for players to "cheat", by picking up everyting from the crates and leave them on the ground for use in the next sub mission. I would like to remove all weapons and items between these episodes, even those that has been left on the ground. How can I do that?

Share this post


Link to post
Share on other sites
24 minutes ago, engima said:

Is there some way to find all weapons that any player has picked up from an ammo box and left somewhere on the map and remove them?

 

yes, this is what I have used:

 

_list = nearestObjects [getpos _man, ["WeaponHolderSimulated","GroundWeaponHolder"], 5];

 

those two types contain the weapons. I'm not sure if there are more types but that should be for weapons

 

just delete the holder with deleteVehicle to get rid of the weapons

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks gc8!

Works perfectly for both weapons and items! 👍

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

×