Jump to content

BZerK0r

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by BZerK0r

  1. On 3/28/2017 at 3:20 PM, salival said:

    I do not have a "5 createDialog" in my battleye/scripts.txt to modify. I tried putting it in at line 12 but didn't work. I have a banker at traders, and safes store coins just fine... just no dialog from the banker. I'm hoping  this is my only issue, as I've been struggling with this for a while.  

     

  2. 3 hours ago, juandayz said:

    @BZerK0r youre brackets are bad.   Use the code below

      Reveal hidden contents


    class ExtraRc {
        class ItemRadio {
            class GroupManagement {
            text = "Group Management";
            script = "execVM 'dzgm\loadGroupManagement.sqf'";
            };
            class switchOnOff {
            text = "Switch ON/OFF";
            script = "execVM 'custom\remote\switch_on_off.sqf'";
            };
        };

            class Binocular {
            class SetView {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
                     }; //this close the class Setview
                };   //this close the class  Binocular
                 class Binocular_Vector {
                     class SetView2 {
                     text = "Setview";
                     script = "execVM 'custom\setview\setview.sqf'";
                     };  //this close the class SetView2 
            };   //this close the class Binocular_Vector

    };//this close the class ExtraRc

     

    Thanks again @juandayz. I figured it was my brackets, but I also believe I tried every configuration to try to get it to work (including this one). I have pasted your code into my extra_rc but still no menu when I right click. 

    The following is in my \custom\setview\setview.sqf file... I believe I have pasted accurately according to your suggestion, but I'm still getting no menu when rt click on rangefinder:

    Spoiler

    (FindDisplay 106) closeDisplay 1;
    pathtosetview = "custom\setview\";
    EXECscript1 = 'player execVM "'+pathtosetview+'%1"';

    setview =
    [
        ["View Range",true],
            ["500", [2],  "", -5, [["expression", format[EXECscript1,"500.sqf"]]], "1", "1"],
            ["1000", [3],  "", -5, [["expression", format[EXECscript1,"1000.sqf"]]], "1", "1"],
            ["1500", [4],  "", -5, [["expression", format[EXECscript1,"1500.sqf"]]], "1", "1"],                
            ["2000", [5],  "", -5, [["expression", format[EXECscript1,"2000.sqf"]]], "1", "1"],
            ["2500", [6],  "", -5, [["expression", format[EXECscript1,"2500.sqf"]]], "1", "1"],
            ["3000", [7],  "", -5, [["expression", format[EXECscript1,"3000.sqf"]]], "1", "1"],
            ["3500", [8],  "", -5, [["expression", format[EXECscript1,"3500.sqf"]]], "1", "1"],
            ["4000", [9],  "", -5, [["expression", format[EXECscript1,"4000.sqf"]]], "1", "1"],
            ["4500", [10],  "", -5, [["expression", format[EXECscript1,"4500.sqf"]]], "1", "1"],
            ["5000", [11],  "", -5, [["expression", format[EXECscript1,"5000.sqf"]]], "1", "1"],
            ["", [-1], "", -5, [["expression", ""]], "1", "0"],
                ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
    ];
    showCommandingMenu "#USER:setview";

     

    Thanks again man!!

  3. On 1/5/2017 at 4:24 PM, juandayz said:

    Ok

    Thank you so much for your help on 1-click build @juandayz. I'm also trying to get this working as well. I have group manage on right click (radio), but I can't get setview to work.

    If I had to guess the problem is in my  extra_rc.hpp (this is for Overpoch 1.0.5.1). Again, total noob at scripting, so my guess is I have a problem with my syntax/structure.

    Spoiler

    class ExtraRc {
        class ItemRadio {
            class GroupManagement {
            text = "Group Management";
            script = "execVM 'dzgm\loadGroupManagement.sqf'";
            };
            class switchOnOff {
            text = "Switch ON/OFF";
            script = "execVM 'custom\remote\switch_on_off.sqf'";
            };
        };

            class Binocular {
            class SetView {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
                     };
                 class Binocular_Vector {
                     class SetView2 {
                     text = "Setview";
                     script = "execVM 'custom\setview\setview.sqf'";
                     };    
            };
       
    };

     

×
×
  • Create New...