-Dragunov- 0 Posted January 22, 2007 Hello i was wondering on operation flash point im working on a mission but i need addon guns in the crates, soldiers and loadouts. Please respond =| Share this post Link to post Share on other sites
Flingotravels 0 Posted January 22, 2007 Find the item names of all the weapons and magazines in your addon (ie: aps_pistol, aps_mag). Usually each addon comes with a readme which has this information. To put these things in a crate, name the crate and then use these commands in the initiation field- <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">crate addMagazineCargo [magazineName, count] To add weapons, it's just <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">crate addweaponCargo [weaponName, count] For infantry, use this- <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit addMagazine magazineName and this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit addWeapon weaponName Share this post Link to post Share on other sites
SevenBEF 0 Posted January 22, 2007 use Chris' OFP Script Editor if you're new at this. It will generate the scripts for you Share this post Link to post Share on other sites
-Dragunov- 0 Posted January 22, 2007 I know but ofp script editor doesnt have it and the BAS dosent come with a read me thats why i posted =| any other ways? Share this post Link to post Share on other sites
The-Architect 0 Posted January 22, 2007 You'll have to search or ask for a copy of the weapons and ammo list. As for the crates it's so easy it's almost painful. You write the following <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">clearmagazinecargo this; clearweaponcargo this; this addmagazinecargo ["m16", 10]; this addweaponcargo ["m16", 1] You just add new lines for new weapons or ammo. Always add the mags first. Share this post Link to post Share on other sites
karantan 0 Posted January 22, 2007 @ Jan. 22 2007,12:05)]I know but ofp script editor doesnt have it and the BAS dosent come with a read me thats why i posted =| any other ways? Every BAS addon that I'm awared off have a readme, where also the classnames of the units and the weapons/mags are listed (where is needed). PM me for which addon unit(s) you need the classname(s), and if I have the addon I'll PM them to you. Share this post Link to post Share on other sites
SevenBEF 0 Posted January 22, 2007 Right, I knew I saw this here before http://www.flashpoint1985.com/cgi-bin....t=16179 scroll down for bas addon classnames Share this post Link to post Share on other sites
-Dragunov- 0 Posted January 23, 2007 Thanks with the BAS there is another small little problem im in ATEF and we have a massive pack so it doesnt come with read mes =( so could some one please help me with ICM addons i need the C4 that they use Share this post Link to post Share on other sites
SevenBEF 0 Posted January 23, 2007 Put such a unit that has that C4 on the map & in his initfield put hint format["Weapons: %1\n\nMagz: %2",weapon this, magazines this] to get the classnames Share this post Link to post Share on other sites
-Dragunov- 0 Posted January 23, 2007 And where do i put that? Share this post Link to post Share on other sites
karantan 0 Posted January 23, 2007 in his init field Yes, this is the easiest way to find out the weapon's and magazine's classnames; do as SevenBEF is suggesting, and you'll get the weapon's and magazines's classnames in form of hint. BTW, for which weapon C4 stands for? As I know this is a name of a plastic explosive. Is this just a typo and you mean the M4 rifle? Share this post Link to post Share on other sites
SevenBEF 0 Posted January 23, 2007 I think he's refering to Pipebomb or Satchel Charges Share this post Link to post Share on other sites
The-Architect 0 Posted January 24, 2007 C4 is plastic explosive. It's quite possible that BAS have C4 isntead of the BIS Satchel. In that case use the code provided above, put into a unit's init line or depbo the BAS addon, BASWeapons possibly, and search the scripts in there for the C4 classname. Share this post Link to post Share on other sites