Unsolved Vehicle exit position

Discussion in 'Mod Support' started by SSRG, Feb 11, 2024.

  1. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,338
    What part of the jbeam determines where you exit a car after pressing F?

    So, for example, I have a usually LHD car with RHD but when I exit, the player pops up on the left of the car, not the right. How can you control where the player is when exiting the vehicle?
     
  2. SineMatic

    SineMatic
    Expand Collapse

    Joined:
    Nov 17, 2022
    Messages:
    62
    I found a function called 'getDoorsidePosRot(veh)' in the walk.lua file. It seems like it depends on whether the driverNode is to the left of the refNode or to its right (by x axis)
     
    • Like Like x 1
  3. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,338
    Alright, thanks.
    So just moving the driver node should work.
     
  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