WIP Beta released Tutorial: Custom GlowMap InputMaps

Discussion in 'Content Creation' started by Ky, Sep 6, 2016.

  1. Ky

    Ky
    Expand Collapse

    Joined:
    Oct 11, 2013
    Messages:
    345
    Hi all,

    I just discovered that it is possible to map custom inputs for glowmaps.

    Here's a little how-to.

    1. Create a keybinding with desired key binding and variable

    Code:
    "bindings" :   [
        {
        "control"           : "p"          ,
        "action"            : "toggle_lighting"
        },
    ],
    2. Create an input_actions file with the following code based off of the pickup tailgate.:

    Code:
    {
    "toggle_lighting":{"order":  1,  "onUp":"electrics.values.lighting = 1-(electrics.values.lighting or 0)", "title": "Interior Lighting", "desc": "Toggles Interior Lighting" }
    }
    3. In your glowmap array, add your variable's name ("lighting") to the simpleFunction string.

    Code:
    "Camper_6_Interior":{"simpleFunction":"lighting", "off":"etk6000_camper_6_interior", "on":"etk6000_camper_6_interior_light"},
    4. Enjoy your awesome new script.

    20160906044544_1.jpg

    Hope this isn't old news :rolleyes:

    Also hope this helps out the community :)

    Maybe this can even go on the wiki...
     
    • Like Like x 4
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice