Jump to content
Sign in to follow this  
Wilson543210

Ammo classname for 81mm mortar

Recommended Posts

I have searched almost every single classname list for the names of the 81mm HE, WP, and ILLUM rounds, can someone help me? I'm trying to make a mission where I can carry around an 81mm mortar WITH the computer as well, which will be a script I'll have to tackle as well.

Share this post


Link to post
Share on other sites

Sadly, none of these classnames worked for when I tired, "this addmagazinecargo ["ARTY_8Rnd_81mmHE_M252",150];" or any other variation given.

Share this post


Link to post
Share on other sites

Are you trying to add magazines to the mortar man or to an ammunition box?

.

Share this post


Link to post
Share on other sites

Instead of filling a crate, give the mortar lots of ammo.

Place a soldier on the map (you).

Select Empty-Static-Mortar and place a mortar on the map.

Get into the mortar and note that it has a single 8 round magazine

If it had 5 magazines that would be 40 rounds. To achive this: {this addMagazine "8Rnd_81mmHE_M252"} forEach [1,2,3,4,5]

Now get into the mortar and see how many magazines it has.

Share this post


Link to post
Share on other sites

Thank you so much, nobody ever told me that, nor could I find it. So I just make this [1,2,3,4,5,6,7,8,9...] to make more magazines?

Share this post


Link to post
Share on other sites

Yes!

(now add a few more words to make the forum minimum word count correct.)

Share this post


Link to post
Share on other sites

Thanks a ton man, though are you sure there's no way to make them standalone in crates or inventories? I've seen ShackTac do that (though zx64 can do anything with his powers of scripting) so I know there's some way how to.

Share this post


Link to post
Share on other sites

ShacTac and everione who wants to get most of ARMA uses ACE. :-)

Everithing works way better with ACE especialy Snipers, explosives and most importantly Artilery.

If you are into Artilery (mortars), you would love it.

EDIT: Also ACE has Mortar shells in sepparate boxes, and you can actualy set theyr propeling charge, take them, and load them to the mortar.

Edited by Mirek

Share this post


Link to post
Share on other sites

Yeah I use ACE, ArmA isn't even worth playing without it in my humble opinion.

Though I don't know how to get mortar rounds isolated into an inventory, that's what I'm wrestling with. And then some super advanced scripting, which I'll have to work with later.

Share this post


Link to post
Share on other sites

OK here you go:

81mm hi ex: ACE_M252HE_CSWDM

81mm smoke: ACE_M252WP_CSWDM

81mm illum: ACE_M252IL_CSWDM

Next time do this:

1.Put an ammobox in the editor

2.name it "bedna" (or whatever you vant)

3. in its init type:

clearWeaponCargoGlobal this; clearMagazineCargoGlobal this;

4.Create trigger radio/alpha (or whatever you want) on repeat

5.in trigers init type

copyToClipboard str (getMagazineCargo bedna); 

or

copyToClipboard str (getWeaponCargo bedna);

6.place a magic box or whatever box containing ammo or weapons you need

7. press prewiev (i expect that i dont have to tell you to place playable character in the first place)

8. take a weapon or magazine you need.

9. place it to the empty box from step 1

10. press 0/0/1 or whatever radiochannel you set that trigger

11. alt tab to windows

12. open text editor

13. click in it

14 pres ctrl+v

15. you now see the classnames of all objects box of selected type in the box of selected type.

Took me an hour this morning to figure out that copyto clipboard thing (thanks Kylania ) so i expect you to, use it at least once. And be appropriately impressed with my googling skills :-D

Edited by Mirek

Share this post


Link to post
Share on other sites

Oh wow man thanks, this is like the best thing ever. Thanks so much, I've been battling with this forever. Now I can stop asking people for help with classnames :D

Share this post


Link to post
Share on other sites

Just FYI, the Six config browser joe98 posted in the first reply includes all ACE classnames:

sixconfigace_zpspkyuucfp.png

Share this post


Link to post
Share on other sites

FriedMouse: Happy to help.

Make sure you help someone else on this forum in return, when you have oportunity. :-)

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  

×