Jump to content
Sign in to follow this  
MoaB

Making Data Terminal into an object

Recommended Posts

I've been having problems with configuring a child class of the "Land_DataTerminal_01_F".

 

What I'm trying to do is, making my child class behave like an ammo crate, so it can be dragged around and loaded with another mod. Since the data terminal is a child of "buildings" and "static" it behaves much different.

 

What I did was setting - simulation = "thing" - in the config. All it did was bringig up errors of missing config entries and making the model disappear.

 

class CfgVehicles
{
	class Land_DataTerminal_01_F;
	class NDF_radioRelay:Land_DataTerminal_01_F
	{
		author = "[NDF MoaB]";
		scope = 2;
		displayName = "TFAR Radio Relay";
		
		ace_dragging_canDrag = 1;
        ace_dragging_dragPosition[] = {0, 1.2, 0};
        ace_dragging_dragDirection = 0;
		
		ace_dragging_canCarry = 1;
        ace_dragging_carryPosition[] = {0, 1.2, 0};
        ace_dragging_carryDirection = 0;
		
		class UserActions
		{
		  class aktivieren
		  {
			displayName = "Aktivieren";
			displayNameDefault = "";
			priority = 3;
			radius = 5;
			position = "action";
			showWindow = 0;
			hideOnUse = 0;
			onlyForPlayer = 1;
			condition = true;
			statement = "[this, 50000] call TFAR_antennas_fnc_initRadioTower;[this,3] call BIS_fnc_DataTerminalAnimate;";
		  };
		  class deaktivieren
		  {
			displayName = "Deaktivieren";
			displayNameDefault = "";
			priority = 3;
			radius = 5;
			position = "action";
			showWindow = 0;
			hideOnUse = 0;
			onlyForPlayer = 1;
			condition = true;
			statement = "[this, -1] call TFAR_antennas_fnc_initRadioTower;[this,0] call BIS_fnc_DataTerminalAnimate;";
		  };
		};
	};
};

This is my config at this point.

 

Any help?

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  

×