Solved Adding ref nodes for camerasInternal

Discussion in 'Mod Support' started by ProgUn1corn, Apr 22, 2024.

  1. ProgUn1corn

    ProgUn1corn
    Expand Collapse

    Joined:
    Apr 29, 2020
    Messages:
    19
    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.
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,073
  3. ProgUn1corn

    ProgUn1corn
    Expand Collapse

    Joined:
    Apr 29, 2020
    Messages:
    19
  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