1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.30 Bug Reporting thread
    Solutions and more information may already be available.

LUA: Where can I find beam table?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by jankimusz, Nov 21, 2017.

  1. jankimusz

    jankimusz
    Expand Collapse

    Joined:
    Jun 12, 2016
    Messages:
    36
    I'd like to add some custom functionality in the beam table, more precisely I want to add a new case such as if "beam.breakGroup and beam.breakGroup ~= "" then" for example to put a tag in jbeam file above, let's say a front axle beams, so I could easily switch what to visualize. So where is that table? Maybe there is some other way of going around this? Any help is appreciated.

    EDIT: Found out that it lies in v.data table, I'll try to look at it, anyway any suggestions are welcome.
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    in Vehicle LUA
    Code:
    v.data.beams[i].breakGroup
     
    #2 thomatoes50, Nov 21, 2017
    Last edited: Nov 21, 2017
  3. jankimusz

    jankimusz
    Expand Collapse

    Joined:
    Jun 12, 2016
    Messages:
    36
    Got it working nicely, ty sir
     
  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