• 0
Sign in to follow this  
Followers 0
DarkDem0n

ATMS

Question

Hello im looking for some code to make the ATM work like a locker wondering if this is still viable.

I have tried this in my config.cpp under CfgInteractionMenus

Spoiler

            class ATM
            {
                targetType = 2;
                target = "Land_Atm_01_F";
                class Actions
                {
                    class Locker: ExileAbstractAction
                    {
                        title = "Deposit/Withdraw Poptabs";
                        condition = "true";
                        action = "_this call ExileClient_gui_lockerDialog_show";
                    };
                };
            };    
    
            class ATM2
            {
                targetType = 2;
                target = "Land_Atm_02_F";
                class Actions
                {
                    class Locker: ExileAbstractAction
                    {
                        title = "Deposit/Withdraw Poptabs";
                        condition = "true";
                        action = "_this call ExileClient_gui_lockerDialog_show";
                    };
                };
            };

Anyone know what is wrong with this or is it out of date ??

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Its not wrong,

and its not out of date,

The Problem is on all new maps like Tanoa, Malden all ATMs like that are now spawned as simple objects, If you placed in example a ATM by you own as normal object you will see you CfgInteractionMenu will working.

 

Share this post


Link to post
Share on other sites
  • 0
44 minutes ago, Sgt. ScrapMetal said:

Its not wrong,

and its not out of date,

The Problem is on all new maps like Tanoa, Malden all ATMs like that are now spawned as simple objects, If you placed in example a ATM by you own as normal object you will see you CfgInteractionMenu will working.

 

Yea all my ones have been placed by me in chernarus  there must be something im missing. Does it require anything in CfgExileCustomCode?

Share this post


Link to post
Share on other sites
Advertisement
  • 0

If you placed them by you own its will working only you have a copy/paste faliure inside.

no option appears`?

 

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

        class Actions 
        {
            class LockerAccess: ExileAbstractAction
            {
                title = "Locker Access";
                condition = "true";
                action = "call ExileClient_gui_lockerDialog_show;";
            };

        };
    };

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

        class Actions 
        {
            class LockerAccess: ExileAbstractAction
            {
                title = "Locker Access";
                condition = "true";
                action = "call ExileClient_gui_lockerDialog_show;";
            };

        };
    };

I have this also in use and its working fine so only view misstakes can happend there.

Wrong place in config.cpp or wrong classnames.

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.