Solved couplers already connected at spawn?

Discussion in 'Mod Support' started by ThreeDTech21, Jan 13, 2018.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Currently to connect a coupler you have to press L and connect it, I want to add doors using the couplers as hinges, but I dont see a way to have it pre-coupled
     
  2. Goosah

    Goosah
    Expand Collapse
    Global Moderator
    BeamNG Team

    Joined:
    Aug 30, 2013
    Messages:
    790
    here is an example. This goes in the primary coupler node. The secondary node just keeps the same "tag" as before.

    {"couplerTag":"dump_door_hinge_l","couplerStrength":175000,"couplerStartRadius":0.01,"couplerWeld":true}

    the couplerStartRadius makes it connected on spawn if the 2 nodes are within distance of the value

    the couplerWeld makes the coupler not able to reattach if it is broken.
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Thanks just what i needed!
     
  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