-duke- 0 Posted January 2, 2008 I've searched the forums as well as the BIKI but have yet to see anything that will help me with my problem (keep in mind I'm a scripting n00b so unless it jumps on my face and wiggles, I may miss it ) Essentially, I'm creating a mission where ammo can only be taken from vehicles and would like not to use ammo crates as the vehicles update their positions based off of enemy presence within capturable spawnpoints. The problem I'm having is that once you choose a weapon or ammo from one of the vehicles, the weapon/ammo combo you were carrying previously is then dropped and left lying all over the place. Needless to say, things get a bit messy after a few spawns with weapons/ammo lying all over the ground. What I'd like to do is one of two things (either/or is fine): 1. delete dropped weapons/ammo within a trigger area or 2. add dropped weapons/ammo to one of the re-supply vehicles. Does anyone know of an easy way to make this happen? Thanks Share this post Link to post Share on other sites
5133p39 16 Posted January 2, 2008 I am not sure whether this works in ArmA the same, but to place a weapon on ground in OFP you had to create a "weaponholder" object and then put inside the weapons/mag of your choice. I think in ArmA it is the same (or simmilar) - that all weapons/mags on ground are actualy these "weaponholder" objects, so you can use the command nearestObjects [_pos, ["WeaponHolder"], 999999]; to get list of those objects, and then you can go through this list and delete the ammo/weapons (delete the objects), or transfer the ammo/weapons to some other container (the ammo truck). I am not sure whether the radius of 999999 isn't clipped to some smaller value - you have to test it to make sure you can get all the objects this way (if you know the approimate location of the weapons/mags on ground, then you shouldn't have any problem). Share this post Link to post Share on other sites
-duke- 0 Posted January 2, 2008 Thanks for the quick response; I'll be sure to give it a try and report back how it works. Share this post Link to post Share on other sites