Adding multiple breakGroups to a spotlight

Discussion in 'Content Creation' started by RY4NDY, Feb 21, 2023.

  1. RY4NDY

    RY4NDY
    Expand Collapse

    Joined:
    Oct 7, 2016
    Messages:
    41
    Recently I was messing around a bit with .jbeam editing on Automation-exported cars, and for one I figured out how to make a detachable part actually attach to another detachable part (instead of both being attached to the car's body, like Automation does it). That worked fine, as you can see here the lamp is attached to the bullbar, so the lamp can still break off on it's own, but won't remain "levitating" in the air after the bullbar has been broken off.


    Then I also figured out how to add a breakGroup to a spotlight; I added the lamp part's breakGroup to the lamp's spotlight so that it actually stops emitting light when the lamp part has broken off.
    Code:
    ["lowhighbeam", "SPOTLIGHT", "Light_0_-2605_945_63cacaca_0", "Light_0_-2605_945_63cacaca_1", "Light_0_-2605_945_63cacaca_2", { "x":0, "y":0, "z":0 }, { "x":0, "y":0, "z":0 }, { "x":0, "y":0, "z":0 }, 0, 0, 0, 1, { "baseTranslation":{"x":0.0, "y":0, "z":0.01}, "lightRange":50.000000,"lightBrightness":1.429092,"flareScale":0.06,"breakGroup":"d1cba_EFixtureType::EFT_HEADLIGHT1_bg","lightColor":{"r":255, "g":255, "b":255, "a":255} }],
    
    That worked as well.

    However, that only works when the lamp part itself detached; if the bullbar has broken off but the lamp part is still attached to the bullbar, it will continue working.


    Is it possible to add multiple breakgroups (in this case, the lamp part's breakGroup and the bullbar part's breakGroup) to a spotlight, so that it stops working when any of those breakGroups have been broken?
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,406
    "deformGroup": ["group 1", "group 2"]
     
    • Like Like 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