Hi, I've read on Documentation that you can have a set of scondary nodes for camerasInternal to aim the camera. I have checked onboardCameras.lua and I've found that, by default the camera is aiming vehicle refnodes and if you define this in camerasInternal section, it will use new refnodes instead. However I don't really understand the syntax. Here's what I've done: ["onboard1", -0.465, -0.65, 0.98, 55, "a53","a54","a80","a81","a17","a84", {"idRef":"a50","idBack":"a87","idUp":"a80"}] However it didn't work and console shows "number expected, got string". It must be some kind of syntax error, how do I actually use this set of refnodes? It doesn't work when adding table header either.
You need additional colons: {"idRef:":"a50","idBack:":"a87","idUp:":"a80"}]. Because the colon is a section link which tells the parser that the string you provide is an id which refers to the Nodes section. Look here for explanation: https://documentation.beamng.com/modding/vehicle/intro_jbeam/jbeamsyntax/#section-links