Jump to content
  • 0

Linking 1 mod to another?


Tricks

Question

Hi all, I would like to use this "Custom GUI" mod along with the "Deploy Anything" mod. Does anyone know how to link the two mods so when you click "Deploy Bike" on the GUI it uses the "Deploy Anything" mod, not the one included with it. Here are the links to the mods. Thank you!

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • 0
13 hours ago, kingpapawawa said:

IBEN_fnc_findDACAIndex <-- this is what menu script uses to do what you are asking.

Thank you, how could I add a check to make sure they have a toolkit and required parts?

Link to comment
Share on other sites

  • 0
On 3/2/2018 at 8:19 AM, Tricks said:

Thank you, how could I add a check to make sure they have a toolkit and required parts?

thats a built in function to deploy anything.. If you use a menu and this function then you call Deploy Bike like this..  This is how its done in Chox's menu..

	class choxMenuButtonDeploy1: ch0x_RscButton	{
		idc = 1610;
		text = "Deploy Bike";
		x = 0.591145 * safezoneW + safezoneX;
		y = 0.363887 * safezoneH + safezoneY;
		w = 0.102708 * safezoneW;
		h = 0.0272222 * safezoneH;
		onButtonClick = "closeDialog 0; call compile (['ch0xMenu','Deploy Bike'] call IBEN_fnc_findDACAIndex);";

Then in deploy anything you do.. somewhere there is a post about this part...

DZE_DEPLOYABLE_NAME_MAP = [
	["MMT_Civ","Bike"],
    ["ATV_US_EP1","ATV"],
    ["CSJ_GyroC","Mozzie"]
];

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...