How do i make a gun/weapon be connected to a modded ver of is file?, for example:

i want my two inch mortar shell be 1 kilometer, so i make the blast radius 1 km, how tho do i make the 2 inch mortar he shell be remade into the modded one thus connected?

here is the modded 2 inch he shell:

image

You working on some sort of orbital strike?

name_of_your_mortar{
 _override:b=yes / _use // it depends if you want to make a new one or replace an existing one
  "gun__ammoHolders:array"{
    ammoHolders:t="ammo_type_name"
  }

  "gun__shells:array"{
    shells:t="%ugm/edited.blk"
  }
}

( in theory ) this is how you do it.

you add the ammo type through ammo holders, ( technically, it’s facoltative, because this is only if you want to add different type of shells. for example, i made my own custom m9 bazooka using the neighman mine for HE purposes. ) you’ll find those in the equipment and others items. like, the actual ammo type.

and the modified shells that you made ( make sure to save that edited blk and put it inside your mission folder.

and it should work.

however, i’m not sure it will work.

when i add the /_use, it makes error in ediotr and crashes, so should i remove it? also i want to replace the existing 2 inch mortar HE shell with the modded one

well… yes

because it’s either _override: OR _use:

in your case, if you want to replace it, you’ll have to find the code of the item that you are trying to replace and change the values above shown with the modded ones

i want my two inch mortar shell be 1 kilometer

Server has a limit at around 130-150m.

Well @MorNloR doesn’t really speak english and i don’t believe he would translate the codes to russian (well why would someone thinks the codes have meaning anyways). Last time i gave him codes and told him to replace stuff to his own preference it didn’t work out well.

The truth is that the codes are not really friendly to everyone in the community. Its the language barrier blocking us from sharing everything to everyone

idk russian but i do know english

Sorry my bad. I think i mixed you up with the other guy. There was another guy who got warned for posting non-english messages in a reply and he also modded my maps using the codes i have shared.
I am sorry for that please accept my apology

1 Like

i forgive u :+1:

1 Like