mortyfero 0 Posted October 18, 2007 Hi all I've created a small medkit that is not working because.. I'm not able to launch the "medkitscript.sqs" when the weapon "medkit" is fired. To be more clear I add the config file. Quote[/b] ]class CfgWeapons { class default {}; class usare: default { scopeWeapon = protected; scopeMagazine = private; valueWeapon = 0; weaponType = WeaponNoSlot; displayName=usare; sound[]={,db-70,1}; reloadSound[]={,db-70,1}; aiDispersionCoefX=2.0; aiDispersionCoefY=2.0; enableAttack=false; showEmpty = false; autoReload = true; magazines[] = {medkit}; canDrop = false; }; class medkit: default { //-- scopeWeapon = private; scopeMagazine = public; picture="\b_medikit\medKit.paa"; model="\b_medikit\mediKit.p3d"; valueMagazine = 1; magazineType = WeaponSlotItem; ammo=; displayName=Medical Kit; displayNameMagazine=Medkit; shortNameMagazine=Medkit; initSpeed=22; maxLeadSpeed = 7; reloadTime=1.5; count=1; sound[]={,db-70,1}; }; }; It's like an ordinary weapon "usare" with ordinary mag "medkit" and I want that when i fire it [] exec "medkit.sqs" How can I do? Thanks Share this post Link to post Share on other sites
ProfTournesol 956 Posted October 18, 2007 You should use the eventhandler "fired", Community wiki Share this post Link to post Share on other sites