• 0
Sign in to follow this  
NeverAgain

Repair Tank

Question

Hello i try repair M113 but menu for repair not show i have this on ineraction menu... its fine i think but no work :-/ Please help and thanks.


class Tank 
	{
		targetType = 2;
		target = "Tank";

		class Actions 
		{
			class ScanLock: ExileAbstractAction
			{
				title = "Scan Lock";
				condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && !ExilePlayerInSafezone && ((locked ExileClientInteractionObject) != 1)";
				action = "_this call ExileClient_object_lock_scan";
			};

			// Locks a vehicle
			class Lock: ExileAbstractAction
			{
				title = "Lock";
				condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
				action = "true spawn ExileClient_object_lock_toggle";
			};

			// Unlocks a vehicle
			class Unlock: ExileAbstractAction
			{
				title = "Unlock";
				condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
				action = "false spawn ExileClient_object_lock_toggle";
			};

			// Repairs a vehicle to 100%. Requires Duckttape
			class Repair: ExileAbstractAction
			{
				title = "Repair";
				condition = "true";
				action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
			};

			// Hot-wires a vehicle
			class Hotwire: ExileAbstractAction
			{
				title = "Hotwire";
				condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
				action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
			};

			// Flips a vehicle so the player doesnt have to call an admin
			// Check if vector up is fucked
			class Flip: ExileAbstractAction
			{
				title = "Flip";
				condition = "call ExileClient_object_vehicle_interaction_show";
				action = "_this call ExileClient_object_vehicle_flip";
			};

			// Fills fuel from a can into a car
			class Refuel: ExileAbstractAction
			{
				title = "Refuel";
				condition = "call ExileClient_object_vehicle_interaction_show";
				action = "_this call ExileClient_object_vehicle_refuel";
			};

			// Drains fuel from a car into an empty jerry can
			class DrainFuel: ExileAbstractAction
			{
				title = "Drain Fuel";
				condition = "call ExileClient_object_vehicle_interaction_show";
				action = "_this call ExileClient_object_vehicle_drain";
			};
		};
	};

repair.png

Edited by NeverAgain

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0
17 minutes ago, hogansheroes said:

is this happening to all tanks or just this 1 and which mod is it from

I use only M113 and i use Cup vehicles.

Share this post


Link to post
Share on other sites
Advertisement
  • 0
15 minutes ago, hogansheroes said:

well its to do with something you have done to break it, did you make a backup of it

Yes i try backup but still same.

Share this post


Link to post
Share on other sites
  • 0

here is my tank it can give you an idea on what to do

Spoiler

    class Tank
    {
        target = "Tank";
        targetType = 2;

        class Actions
        {
            
            //servicepoint
            class ServicePointRepair: ExileAbstractAction
            {
                title = "ServicePoint Repair";
                condition = "(count (nearestObjects [(getPos player), ['Land_CarService_F','Land_FuelStation_Feed_F'],50]) >0)";
                action = "_this call Bones_fnc_servicePointRepairMenu";
            };
            
            class ServicePointRearm: ExileAbstractAction
            {
                title = "ServicePoint Re-Arm";
                condition = "(count (nearestObjects [(getPos player), ['Land_CarService_F','Land_FuelStation_Feed_F'],50]) >0)";
                action = "_this call Bones_fnc_servicePointRearmMenu";
            };
            //endsServicePoint            
            
            class ScanLock: ExileAbstractAction
            {
                title = "Scan Lock";
                condition = "('Exile_Item_ThermalScannerPro' in (magazines player)) && ((locked ExileClientInteractionObject) != 1) && !ExilePlayerInSafezone";
                action = "_this call ExileClient_object_lock_scan";
            };

            // Locks a vehicle
            class Lock: ExileAbstractAction
            {
                title = "Lock";
                condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)";
                action = "true spawn ExileClient_object_lock_toggle";
            };

            // Unlocks a vehicle
            class Unlock: ExileAbstractAction
            {
                title = "Unlock";
                condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
                action = "false spawn ExileClient_object_lock_toggle";
            };
            
            class ClaimVehicle: ExileAbstractAction
            {
                title = "Claim Ownership";
                condition = "true";
                action = "call ExileClient_ClaimVehicles_network_claimRequestSend";
            };                        
        
            /*
            // Hot-wires a vehicle
            class Hotwire: ExileAbstractAction
            {
                title = "Hotwire";
                condition = "((locked ExileClientInteractionObject) isEqualTo 2) && ((locked ExileClientInteractionObject) != 1)";
                action = "['HotwireVehicle', _this select 0] call ExileClient_action_execute";
            };
            */
            
            // Repairs a vehicle to 100%. Requires Duckttape
            class Repair: ExileAbstractAction
            {
                title = "Repair";
                condition = "true";
                action = "['RepairVehicle', _this select 0] call ExileClient_action_execute";
            };

            
            // Flips a vehicle so the player doesnt have to call an admin
            // Check if vector up is fucked
            class Flip: ExileAbstractAction
            {
                title = "Flip";
                condition = "call ExileClient_object_vehicle_interaction_show";
                action = "_this call ExileClient_object_vehicle_flip";
            };

            // Fills fuel from a can into a car
            class Refuel: ExileAbstractAction
            {
                title = "Refuel";
                condition = "call ExileClient_object_vehicle_interaction_show";
                action = "_this call ExileClient_object_vehicle_refuel";
            };

            // Drains fuel from a car into an empty jerry can
            class DrainFuel: ExileAbstractAction
            {
                title = "Drain Fuel";
                condition = "call ExileClient_object_vehicle_interaction_show";
                action = "_this call ExileClient_object_vehicle_drain";
            };
            
            // Salvage Vehicle
            class Salvage: ExileAbstractAction
            {
                title = "Salvage Vehicle";
                condition = "(!(alive (ExileClientInteractionObject)))";
                action = "_this call NR_fnc_SalvageVehicleT";
            };
            // Save Paint
            class ExileSavePaint: ExileAbstractAction
            {
                title = "Save Paint";
                condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1)  && ExilePlayerInSafezone";
                action = "_this call NR_fnc_exileSavePaint";
            };            
        };
    };    

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
49 minutes ago, NeverAgain said:

Yes i try backup but still same.

And Claim for tanks wont work too but for cars well...

Edited by NeverAgain

Share this post


Link to post
Share on other sites
  • 0

Add your complete CfgInteractionMenus

so we can see if you done something wrong

If not try a default version and just change the class to tanks, if this still dont work its something that has broken somewhere

Edited by hogansheroes

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.