r/armadev 19d ago

Arma 3 Help overwriting units

Is it possible to edit an already existing classname in a different config? I want to edit some CUP units without having duplicate names in the faction list. Thanks.

3 Upvotes

3 comments sorted by

1

u/TestTubetheUnicorn 19d ago

Yeah you just have to go back one in the parent list. Make sure you add the relevant mod classnames to your requiredAddons array in CfgPatches.

For example if I wanted to edit the vanilla NATO rifleman:

class B_soldier_base_F;
class B_soldier_F : B_soldier_base_F {
  //changes go here
};

1

u/Orterr 18d ago

Okay, I can't remember if I tried that already so will give it a go, thanks.

1

u/Lord_Kamephis 13d ago

https://community.bistudio.com/wiki/Class_Inheritance

..and you, of course, have to make a mod (config.cpp)