CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Extra keybinds

    Scripts
    2
    2
    229
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Uvuvwevwevwe Onyetenyevwe Ugwemubwem Ossas
      Uvuvwevwevwe Onyetenyevwe Ugwemubwem Ossas last edited by

      Is there a script to make combinations of keybinds or is it a way to do it? for example to bind fly to alt + 1, it would give us a lot of comfortable binds

      I 1 Reply Last reply Reply Quote 0
      • I
        idk my name @Uvuvwevwevwe Onyetenyevwe Ugwemubwem Ossas last edited by idk my name

        @Uvuvwevwevwe-Onyetenyevwe-Ugwemubwem-Ossas you can do this only by writing custom script.
        There's an example how would you do this:

        Keyboard.isKeyDown(Keyboard.KEY_RMENU) && Keyboard.isKeyDown(Keyboard.KEY_1) && FlyModule.toggle();
        
        Keyboard = Java.type('org.lwjgl.input.Keyboard');
        

        Requires Core.lib to work properly (put this into onUpdate)
        This way would work dope as if you just hold these two keys Fly module would toggle on and instantly toggle off. Be careful: I specified Right Alt key.
        For proper functional you need to use onKey. Maybe learn some ScriptAPI?

        EDIT: to be not boring there's an example of using onKey:

        onKey: function(e) {
            e.key == Keyboard.KEY_RMENU && e.key == KEY_1 && FlyModule.toggle();
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        About
        • Terms of Service
        • Privacy Policy
        • Status
        • Contact Us
        Downloads
        • Releases
        • Source code
        • License
        Docs
        • Tutorials
        • CustomHUD
        • AutoSettings
        • ScriptAPI
        Community
        • Forum
        • Guilded
        • YouTube
        • Twitter
        • D.Tube