Jump to content
Sign in to follow this  
mortyfero

Medkit

Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×