cragtek 10 Posted June 25, 2009 Firstly, let me say how brilliant a resource this forum has been to me while getting back into scripting. Secondly, I have a couple of quick scripting questions: 1. I've been trying very hard to remove weapons/ammo from vehicles in Arma2 with no luck yet. I want to create a basic observation helicopter which does not allow the player to fire on his opponent. Setting the ammo amount in the unit box is fine to begin with, but when the chopper respawns it has full ammo again. I can't find a scripting command that works to actually remedy this. Is it possible? 2. How would I make it so that a sound played from somewhere within a marker radius at random intervals, of say, 1-5 minutes apart? I want to create directional sound coming from within some woods to spook the player. If anyone can answer these questions I owe you a debt of gratutude! Share this post Link to post Share on other sites
Tajin 337 Posted June 25, 2009 1. You could use unit1 removeWeapon "weaponclassname" But whatever command you use for this, you'll have to rerun the command when the vehicle respawns. Only other way would be to alter the config of that vehicle and save it as an addon. 2. Sounds can easily be played with triggers afaik. Alternately the "say" command allows you to make an object play a soundmessage. Some are predefined but if you want custom ones youll have to make an entry for them in the description.ext Share this post Link to post Share on other sites