Jump to content

mrleather

Member
  • Content Count

    16
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About mrleather

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. mrleather

    Variable help

    I have read everything you said, tried everything you said... try the mission file for yourself and you will probably see what I am trying to do.
  2. mrleather

    Variable help

    Do you mean under the _handled or somewhere else?
  3. mrleather

    Variable help

    Easier if I give you the mission Download: https://drive.google.com/open?id=1Xs8Xs_VdqIzlFj5DCIjimvCq5N5liYXd Assign gear assigns all the items Defineclasses has all the classnames etc keys is the key handler i'm using (if you load up the mission only select blufor)
  4. mrleather

    Variable help

    No I know I have everything in the loadout setup like everything works, it's just the only thing that doesn't work is the Scope 1 = "optic" in key handler I can do it anywhere else
  5. mrleather

    Variable help

    nah thats not what i'm trying to do. I have a script set up so for example if I put in init Scope1 = "optic_arco"; the arco will go in the players clothing. It just doesn't do it when done in the key handler.
  6. mrleather

    Variable help

    Just gives the hint Scope1 changed to "optic_hamr" or "optic_arco". Doesn't give anything else
  7. mrleather

    Variable help

    It's like on my key handler script it isn't detecting the Scope1 variable as the only way it works is by doing it in init, or on the loadout script itself. I get the hints the script works just the scope doesnt change
  8. mrleather

    Variable help

    Yeah i changed the init to Scope1 = "optic_arco"; and it gives me the arco the key handler works i get the "m" hint just need to it to toggle between arco and rco
  9. mrleather

    Variable help

    I don't know why this doesn't work then init: Scope1 = "arco"; key handler: case 22: { if (Scope1 isEqualTo "arco") then // if "arco" is already set then change to "rco" { Scope1= "optic_hamr"; hint "r"; } else { // else set it Scope1 = "optic_mrco"; hint "m"; }; };
  10. mrleather

    Variable help

    Okay so I went back through everything you said trying to understand because im hella confused lol. I still can't get anything to work i'm confused with this "arco" thing. In my init I now have Scope1 = "arco"; and my keyhandler is now case 22: { if (Scope1 isEqualTo "arco") then { Scope1 = "optic_mrco"; hint "scope"; }; }; I'm just a bit confused with the "arco" and "rco" stuff. If for example I set Scope1 = "optic_mrco"; in the init it works fine, but this toggle thing isn't working.
  11. mrleather

    Variable help

    What do I do to make it so when i press the button the scopes change
  12. mrleather

    Variable help

    Not gonna lie im really confused lol So in my init I put this: Scope1 = ""; In my key handler I put this: case 22: { if (Scope1 isEqualTo "arco") then { hintSilent "true!"; Scope1 = "optic_Arco_blk_F"; } else { hintSilent "false!"; Scope1 = "optic_mrco"; }; }; The output I get is straight "false"
  13. mrleather

    Variable help

    the scope doesn't change on my keypress I get the error type string, expected bool. it gives the original scope but when I keypress nothing happens
  14. mrleather

    Variable help

    I have the variable Scope1 = "optic_Arco_blk_F"; Then in my keybinding script I have this case 22: { if(Scope1 ) then { Scope1= false; Scope1 = "optic_Hamr"; hint "rco"; } else { Scope1 = true; hint "arco"; }; _handled = true; }; In my init I have Scope1 = false; Any ideas, I want to make it so the Scope1 from the selection script changes on the key press I made.
  15. mrleather

    Variable help

    Quick question, How do I create a global variable as I have the current variable in private
×