Solved making something adjustable

Discussion in 'Mod Support' started by chevy65, Dec 16, 2017.

  1. chevy65

    chevy65
    Expand Collapse

    Joined:
    Aug 12, 2013
    Messages:
    154
    I'm trying to make my own N2O mod just to practice but I cant figure out how to give adjustable power output.
     
    • Like Like x 1
  2. Deleted member 160369

    Deleted member 160369
    Expand Collapse
    Guest

    You need to configure the "shot" part as adjustable, using variables. Like this:
    Code:
    "n2o_shot_variable":{
     "information":{
     "name":"Adjustable Shot Size",
     },
     "slotType":"CRD_n2o_shot",
     "variables":[
      ["name","type","unit","category","default","min","max","title","description"],
      ["$n2o_power","range","kW","Nitrous Oxide",400,300,500,"Added Power","Power increase the N2O injection grants"{"stepDis":50}],
      ],
     "n2o":{
      "addedPower":"$n2o_power",
      },
    },
    The variables section determines the range of adjustability: The parameter "addedPower":"$n2o_power" varies according to the value set for the n2o_power variable.
     
  3. chevy65

    chevy65
    Expand Collapse

    Joined:
    Aug 12, 2013
    Messages:
    154
    awesome thanks!
     
    • Agree Agree 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