Jump to content
Sign in to follow this  
Danidan

My custom Unit

Recommended Posts

Hello, I am interested to create my addons with a .cpp file in order to have my units directly from the editor. I'm done and almost done and all work well but I'm stuck on one point and I would like some advice.

 

1) It is impossible for me to put "SatchelCharge_Remote_Mag" to my specialist explo to my "Magazines[] ="

 

2) I would like to use this configuration .cpp for more camo, you advise me to make a new pbo file for each camo or to integrate all in the same? Thank you in advance for your light and sorry for my english.

Share this post


Link to post
Share on other sites

Exemple of script for specialiste explo:

 

 class Demolisseur_B : I_soldier_F { //You may use anything you want, just make sure it's unique
                   _generalMacro = "B_Soldier_F"; //Don't change this line!
                   scope = 2; //This means whether you'll be able to see the unit in the dropdown menu or not
                    side = 1; //0 Means Opfor
                   faction = "BLUEFOR"; //Your Faction
                   vehicleclass = "OFCRA_BLUEFOR"; //Unit Group
                   displayName = "Démolisseur";
                   nakedUniform = "U_BasicBody";
                   uniformClass = "rhs_uniform_g3_mc";
                   //hiddenSelections[] = {"Camo"};	//You can get rid of this line if you're not creating a new uniform
                   //hiddenSelectionsTextures[] = {"\Your\Path\ASTR_uniform_v2.paa"};	//You can get rid of this line if you're not creating a new uniform
                    //genericnames = "AfroMen";	//Right now your soldiers will have African names, you can get rid of this line
                    //identitytypes[] = {"Head_African"};	//Right now your soldiers will look African, you can get rid of this line

                    backpack = "rhsusf_assault_eagleaiii_ocp";
                    weapons[] = {"rhs_weap_m4a1","Throw","Put"};
                    magazines[] = {"rhs_mag_m67","rhs_mag_an_m8hc","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_30Rnd_556x45_M855A1_Stanag","rhs_mag_m67","rhs_mag_an_m8hc","SatchelCharge_Remote_Mag","SatchelCharge_Remote_Mag"};
                    items[] = {"ACE_morphine","ACE_morphine","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_fieldDressing","ACE_Clacker","ACE_DefusalKit","ACE_EarPlugs"};
                    linkedItems[] = {"rhsusf_iotv_ocp_Rifleman","rhsusf_ach_helmet_ocp","","ItemMap","ItemCompass","tf_microdagr","ItemRadio"};
             };
         };

 

Share this post


Link to post
Share on other sites

I have understand my error! I need to configure my backpack but I can not understand how to do!?

 

Please Help Thank's

Share this post


Link to post
Share on other sites

Hello,

 

I have solved my probleme but i have a last question.

 

My mode is finish but for use i must install on each client and serveur or only on serveur?

 

Thanks!

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  

×