Jump to content
Sign in to follow this  
clawhammer

Problem with class TalkTopics

Recommended Posts

Iam trying to give my units the possiblilty to talk to OA Units with adding the class TalkTopic.

Here is my config:

class CfgVehicles {
class All {};
class AllVehicles : All {};
class Land : AllVehicles {};
class Man : Land {};
class Soldier : Man {};
class Civilian : Man {};
class USMC_Soldier : Soldier {};
class USMC_Soldier_GL : USMC_Soldier {};
class USMC_Soldier_Medic : USMC_Soldier {};
class USMC_Soldier_Officer : USMC_Soldier {};
class USMC_Soldier_MG : USMC_Soldier {};

class CAManBase : Man {
	class TalkTopics;	// External class reference
};

class armysf_acu_at : USMC_Soldier {
	vehicleClass = "USArmySFacuVehClass";
	faction = "USArmySFFacClass";
	displayName = "AT Operator";
	model = "\ArmySF\Models\acu\armysf_acu_at.p3d";
	portrait = "\Ca\characters\data\portraits\comBarHead_usmc_soldier_ca";
	identityTypes[] = {"USMC_Glasses", "Head_USMC"};
	faceType = "Man";
	scope = public;
	nightVision = true;
	canCarryBackPack = 1;
	camouflage = 0.6;	// how dificult to spot - bigger - better spotable
	Icon = "\Ca\characters\data\map_ico\i_komandos_CA.paa";
	weapons[] = {"M4A1_Aim","M136", "M9", "NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	magazines[] = {"M136", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9",  "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"};
	respawnweapons[] = {"M4A1_Aim","M136","NVGoggles", "Binocular", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	respawnmagazines[] = {"M136", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9",  "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9"};

	class TalkTopics: TalkTopics {
		core_en = "Core_Full_E";
 		};
	languages[] = {"EN"};
	class EventHandlers;

	class Wounds {
		tex[] = {};
		mat[] = {"ca\characters\data\us_hhl.rvmat", "ca\characters\data\us_hhl_wound1.rvmat", "ca\characters\data\us_hhl_wound2.rvmat", "ArmySF\Textures\acu\AT\armysf_at_acu.rvmat", "ArmySF\Textures\acu\AT\armysf_at_wound1.rvmat", "ArmySF\Textures\acu\AT\armysf_at_wound2.rvmat"};
	};
};

But i get everytime the error: "/CfgVehicles/armysf_acu_at.TalkTopics: Undefined base class 'TalkTopics'"

How can i add this to my unit so that i will get no problems with the OA talking menu?

Thanks for help!

Share this post


Link to post
Share on other sites

basing the soldier on the new arma2 OA US_Soldier_EP1 class instead of the usmc_soldier should solve the entire problem

---------- Post added at 01:12 AM ---------- Previous post was at 01:10 AM ----------

or

instead of

class CAManBase : Man {

class TalkTopics; // External class reference

};

do this

class USMC_Soldier : Soldier {

class TalkTopics; // External class reference

};

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  

×