1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Is this possible?

Discussion in 'Scripting Workshop' started by Aderre, Jun 20, 2014.

  1. Aderre

    Aderre Member

    Messages:
    33
    Is it possible to randomize Engine Parameters? like Attack, Decay etc?

    I tried this based on page 44 of KSP Reference, but it won't work.
     
    Last edited: Jun 20, 2014
  2. Big Bob

    Big Bob Forum Member

    Messages:
    606
    Please state your requirement more clearly.

    When the knob = 0 what pictures do you want to display for test1 and test2
    When the knob = 1 what pictures do you want to display for test1 and test2
    When the knob = 2 what pictures do you want to display for test1 and test2

    For example:

    knob=0, test1=pix1, test2=pix1
    knob=1, test1=pix?, test2=pix?
    knob=2, test1=pix?, test2=pix?

    It's not at all clear what you are trying to make it do.

    Rejoice,

    Bob
     
  3. Aderre

    Aderre Member

    Messages:
    33
    Sorry, meanwhile I realized that one and thought no one would answer it, so I changed the content to avoid "bombing" the forum. As of now, I can't find an example of randomization in the KSP reference for Egine Parameters, and just would like to know if it is even possible. Thanks!
     
  4. Big Bob

    Big Bob Forum Member

    Messages:
    606
    Yes, it is possible to 'randomize' any script-controllable parameter by using the random function and suitable range limiting code.
     
  5. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Sounds like you need to read that KSP reference with a bit more attention ;)