Jump to content
Sign in to follow this  
mrflay

Custom objective module not shown

Recommended Posts

Hi, I'm trying to create a custom "photograph" objective for zeus, but I can't get it to appear in the list of available objective types in game. Anyone know how to do it using config?

This is my config.cpp:

class CfgPatches
{
class FLAY_Camera_Module_Curator
{
	units[] = {"FLAY_ModuleObjectivePhotograph"};
	weapons[] = {};
	requiredVersion = 1;
	requiredAddons[] = {"A3_Modules_F_Curator"};
};
};
class CfgFunctions
{
class FLAY_Modules_Curator
{
	tag = "FLAY";
	class Objectives
	{
		file = "FLAY\FLAY_Camera\curator\functions";
		class moduleObjectivePhotograph
		{
			ext = ".fsm";
		};
	};
};
};
class CfgVehicles
{
class Logic;
class Module_F: Logic
{
	class ModuleDescription
	{
		class AnyPlayer;
	};
};
class FLAY_ModuleObjectivePhotograph: Module_F
{
	scope = 1;
	scopeCurator = 2;		
	author = "mrflay";
	displayName = "Photograph";
	portrait = "FLAY\FLAY_Camera\data\icons\portraitObjectivePhotograph_ca.paa";
	category = "Objectives";
	function = "FLAY_fnc_moduleObjectivePhotograph";
	curatorInfoType = "FLAY_RscDisplayAttributesModuleObjectivePhotograph";
	isTriggerActivated = 1;
	curatorCanAttach = 1;
	curatorCost = 0;		
};
};

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  

×