Hailthorn 1 Posted March 4, 2014 I am in the process of making a radar speed-gun for ArmA 3 and was wondering whether or not I could do it in terms of the config. Is it possible to make a weapon which when "fired" doesn't fire a projectile but instead activates a script? Thanks, Hailthorn Share this post Link to post Share on other sites
ante185 2 Posted March 4, 2014 I think making it activate a script can be done in the editor and you can also use another script (or integrate them) if you want it to have unlimited ammo, and to make it fire I would recommend (Based on my little knowledge) something like this, but I doubt this will work straight out of the gate but it is somewhere to start right? class CfgAmmo { class B_556x45_Ball; //External class class Nohit_ammo : B_556x45_Ball { hit = 0; indirectHit = 0; indirectHitRange = 0; cost = 0; typicalSpeed = 0; airFriction = 0; caliber = 0; deflecting = 0; model = "\A3\Weapons_f\Data\bullettracer\tracer_yellow"; tracerScale = 0; tracerStartTime = 0; tracerEndTime = 0; visibleFire = 0; // how much is visible when this weapon is fired audibleFire = 0; }; }; class CfgMagazines { class 30Rnd_556x45_Stanag; class speedgun_magazine : 30Rnd_556x45_Stanag { scope = public; displayName = Speedgun batteri; picture = "\A3\weapons_F\data\UI\m_30stanag_CA.paa"; ammo = "Nohit_ammo"; count = 30; initSpeed = 0; tracersEvery = 0; lastRoundsTracer = 0; descriptionShort = Good for thirty uses.; }; }; Share this post Link to post Share on other sites
hkurban 1 Posted March 5, 2014 Try this along with the "fire" action. https://community.bistudio.com/wiki/inputAction Share this post Link to post Share on other sites
soldia 1 Posted March 5, 2014 Why not using the basis of a laser designator? I mean, in reality speed guns are in fact laser designators. You could make it fire twice (or permanently) in order to measure the objects velocity. I'm not at home and therefore don't have access to the config, but you could give it a shot. Share this post Link to post Share on other sites
Hailthorn 1 Posted March 5, 2014 Thanks for that config Soldia I'll give it a go later this evening. I had originally thought of using a laser designator but that would involve the speed gun occupying the binocular spot in the inventory (I think) whereas I was hoping for it to be a secondary weapon. Share this post Link to post Share on other sites