granQ 293 Posted November 16, 2003 Okey what i want to do is to make the "loader" be able to carry ammo for our carl gustav weapon. Before i made so if they had the AK5 they could pick up ammo but since the ammo was for a secondary weapon and the AK5 was primary it worked perfect. Now i have made a "backpack" that you carry on your "secondary" slot, but if you pick up the ammo you can now reload and then fire. I am not posting the cpp since it is too much but the "backpack" part looks like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class sfpmes : sfpgrg { displayname="Mes"; model="\SFP_pskott86\mes.p3d"; enableattack=false; ammo=""; }; and the weapon is of course "sfpgrg".. looks like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class SFPgrg: CarlGustavLauncher { magazines[]={"SFPgrgmag","SFPgrgPmag","SFPgrgrokmag","SFPgrglysmag","CarlGustavLauncher"}; canLock=1; model="\SFP_pskott86\grg.p3d"; modelSpecial="\SFP_pskott86\grgmds.p3d"; picture="\dtaext\equip\W\w_carlgustavlauncher.paa"; modelOptics="\SFP_pskott86\optika_grg.p3d"; displayName="Granatgevär m/48"; displayNameMagazine="Granatgevär m/48"; shortNameMagazine="Granatgevär m/48"; }; Can i make this works somehow? Share this post Link to post Share on other sites