Jump to content
darthun

How to implement drag and drop Module Behavior

Recommended Posts

Hi guys,

 

I'm new to mission making.

 

I'm looking to make a simple module that does an addaction on the player. But here is the twist : I don't want to drop the module on the map and synch it. i want to drop the module directly on the player.

 

The best example of the behavior i'm looking for exists when you are Zeus. You can put down a ammo box , and then under Arsenal, there is a "add arsenal " module you can drag and drop onto the ammo box and it gives the arsenal option to it.

 

I'm going to use my module in the same situation, so it's a zeus player who will drag and drop the module onto a vehicle.

 

How would i go about this ?

 

Thank you.

 

 

Share this post


Link to post
Share on other sites

I will post an example when I get back home. You can also open up mods like ACE3 or Ares to see examples on how to do this.

Share this post


Link to post
Share on other sites

Here is an example config:

class myCuratorModule: Module_F
{
	scope = 1;
	scopeCurator = 2;
	displayName = "My Zeus Module";
	category = "myCuratorCategory";
	icon = "myIcon.paa";
	
	function = "TAG_fnc_myModuleFunction";
	functionPriority = 1;
        isTriggerActivated = 0;
	isGlobal = 1;
	curatorCanAttach = 1;
};

Share this post


Link to post
Share on other sites

Hmm, it's not showing up under zeus while in game.

 

I managed to get it to work with scope = 2; in the eden editor.

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

×