Jump to content
sizraide

.paa not found with mortar ammo

Recommended Posts

Hello, I made this tiny script that adds mortar HE shells inside two containers.

 

Quote

_ammo = "8Rnd_82mm_Mo_shells";

{ _x addItemCargo [_ammo, ([1,2] call BIS_fnc_RandomInt)]; } forEach [box1, box2];

 

It works, but when I open the containers it says that the .paa file of the ammo type is missing.

 

I'm using these shells from this mortar.
https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_WEST#B_Mortar_01_F

Share this post


Link to post
Share on other sites
private _ammo = "8Rnd_82mm_Mo_shells";

{ _x addItemCargo [_ammo, selectRandom [1, 2]]; } forEach [box1, box2];

 

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, pierremgi said:

not an item but a magazine class:

private _ammo = "8Rnd_82mm_Mo_shells";

{_x addMagazineCargoGlobal [_ammo, selectRandom [1,2]]} count [box1,box2];
 

 

Still shows .paa not found.

I am trying to put them into ammo containers, not mortar inventory.

Share this post


Link to post
Share on other sites
1 hour ago, R3vo said:

private _ammo = "8Rnd_82mm_Mo_shells";

{ _x addItemCargo [_ammo, selectRandom [1, 2]]; } forEach [box1, box2];

 


Still .paa not found.

Share this post


Link to post
Share on other sites

First, it's a magazine. Second, there is no picture for that, so you can't have a paa drawn in inventory, definitely. You can add it in a box, you can't see a picture in inventory.

 

in config Viewer, compare:
configfile >> "CfgMagazines" >> "8Rnd_82mm_Mo_shells"    (picture = "";) So, no picture

and

configfile >> "CfgMagazines" >> "75rnd_762x39_AK12_Arid_Mag_F" (picture = "\a3\Weapons_F_Enoch\MagazineProxies\data\UI\icon_75rnd_762x39_AK12_Arid_Mag_F_CA.paa";)

Share this post


Link to post
Share on other sites
10 hours ago, pierremgi said:

First, it's a magazine. Second, there is no picture for that, so you can't have a paa drawn in inventory, definitely. You can add it in a box, you can't see a picture in inventory.

 

in config Viewer, compare:
configfile >> "CfgMagazines" >> "8Rnd_82mm_Mo_shells"    (picture = "";) So, no picture

and

configfile >> "CfgMagazines" >> "75rnd_762x39_AK12_Arid_Mag_F" (picture = "\a3\Weapons_F_Enoch\MagazineProxies\data\UI\icon_75rnd_762x39_AK12_Arid_Mag_F_CA.paa";)

 

I understand, thanks for the response.

 

Can I put my own picture in there?

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

×