1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Solved Trigger by Nitrous Activation

Discussion in 'Mod Support' started by BombBoy4, Apr 16, 2018.

  1. BombBoy4

    BombBoy4
    Expand Collapse

    Joined:
    May 16, 2015
    Messages:
    2,045
    What is the jBeam "simpleFunction" parameter name that activates the glowMap when nitrous is being used? If it doesn't exist, how would one make it work?
    Example for JATO activation:
    Code:
        "glowMap":{
             //rocket exhaust shock diamonds
            "shockdiamonds_C":        {"simpleFunction":"jato",   "off":"invis", "on":"shockdiamonds_glow"},
        },
    Also the nitrous activation name for soundscapes to make a custom nitrous sound, example:
    Code:
        "soundscape": [
            ["name", "src"],
            ["horn", "art/sound/1807.ogg"],
        ]
     
    #1 BombBoy4, Apr 16, 2018
    Last edited: Apr 16, 2018
  2. thomatoes50

    thomatoes50
    Expand Collapse
    Staff Member

    Joined:
    Jan 31, 2013
    Messages:
    499
    You would need a vehicle script somewhere to get the value for you
    Code:
    electrics.values.n2oActive = powertrain.getDevice('mainEngine').nitrousOxideInjection.isActive and 1 or 0
     
    • Like Like x 1
    • Informative Informative x 1
  3. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,025
    I'll add a relevant electrics value to the game for a future update. :)
     
    • Like Like x 2
    • Informative Informative x 1
  4. BombBoy4

    BombBoy4
    Expand Collapse

    Joined:
    May 16, 2015
    Messages:
    2,045
    Oh, forgot to put solved at the top lol
    I got it to work (thanks thomatoes50!), but good to know it'll be officially implemented :)
     
    • Like Like x 2
  5. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,025
    The official default electrics name will be
    Code:
    nitrousOxideActive
    to go along with
    Code:
    nitrousOxideArm
    nitrousOxideOverride
    that already exist.
     
    • Informative Informative x 1
  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