Jump to content
dennis159

ACE Interaction Problems

Recommended Posts

Hey, 

we host an arma 3 roleplay Server. Since the Server is modded, we want to replace all arma actions (addAction) by the ACE Interaction menue.

For that we use this code. 

private _ZLMAINLICENSE= ["ZERO_LIFE_MAINLICENSE", "Zero Life", "", { }, {playerside isEqualTo civilian}] call ace_interact_menu_fnc_createAction;
    [_x, 0, [], _ZLMAINLICENSE, true] call ace_interact_menu_fnc_addActionToObject;

private _ZLDRIVERLICENSE = ["ZERO_LIFE_DRIVERLICENSE", format["%1 ($%2)",(getText(missionConfigFile >> "Licenses" >> "driver" >> "displayName")),[(getNumber(missionConfigFile >> "Licenses" >> "driver" >> "price"))] call life_fnc_numberText], "", { ["driver"] call life_fnc_buyLicense; }, {playerside isEqualTo civilian}] call ace_interact_menu_fnc_createAction;
    [_x, 0, ["ZERO_LIFE_MAINLICENSE"], _ZLDRIVERLICENSE, true] call ace_interact_menu_fnc_addActionToObject;

 

And this code:

private _ZLMAIN = ["ZERO_LIFE_GARAGE", "Zero Life", "", { }, {true}] call ace_interact_menu_fnc_createAction;
private _garage = [
                      [ace_garage_1,"Car","car_g_1"]
                  ];
{
    private _type = _x select 1;
    private _point = _x select 2;
    private _ZL_GARAGE = ["", "Garage", "",        {
                                                      [getPlayerUID player,playerSide,_type,player] remoteExecCall ["TON_fnc_getVehicles",2];
                                                      life_garage_type = _type;
                                                      createDialog "Life_impound_menu";
                                                      disableSerialization;
                                                      ctrlSetText[2802,"Fetching Vehicles...."];
                                                      life_garage_sp = _point;
                                                   }, {true}] call ace_interact_menu_fnc_createAction;
    private _ZL_EINPARKEN   = ["", "Fahrzeug einparken", "", { [] spawn life_fnc_storeVehicle; }, {true}] call ace_interact_menu_fnc_createAction;
        [_x select 0, 0, [], _ZLMAIN, true] call ace_interact_menu_fnc_addActionToObject;
        [_x select 0, 0, ["ZERO_LIFE_GARAGE"], _ZL_GARAGE, true] call ace_interact_menu_fnc_addActionToObject;
        [_x select 0, 0, ["ZERO_LIFE_GARAGE"], _ZL_EINPARKEN, true] call ace_interact_menu_fnc_addActionToObject;
} foreach _garage;

The interactions are working as them should, except one problem.

 

ALL variables are not printing their value, so the code doensn't work complete.

Same problem with the config entries. ( (getText(missionConfigFile >> "Licenses" >> "driver" >> "displayName")) ). They work outside of the "call ace_interact_menu_fnc_createAction", but not inside.

I hope i explained well enaught with my bad english, so someone can understand my problem and help me.

 

thanks in advance

 

kind Regards
Dennis

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

×