Unsolved How to move props

Discussion in 'Mod Support' started by AdamB, Nov 7, 2017.

  1. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    I know how to move a mesh with code, but how do I move a prop the same way?
    I'm trying to do an engine swap, and I can't figure out how to move the radiator fan. Any suggestions? :)
     

    Attached Files:

  2. EcoNadder77

    EcoNadder77
    Expand Collapse

    Joined:
    May 29, 2017
    Messages:
    1,150
    I'm not 100% positive, but try changing this:
    Code:
    ["radiatorFanSpin", "marfan", "e2r","e2l","e4r", {"x":7, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -360, 360, 0, 1],
    To this:
    Code:
    ["radiatorFanSpin", "marfan", "e2r","e2l","e4r", {"x":7, "y":0, "z":0}, {"x":0, "y":1, "z":0}, {"x":0, "y":0, "z":0}, -360, 360, 0, 1, {"baseTranslation":{"x":0.0, "y":0.0, "z":0.0}},],
    I think changing the values in "baseTranslation" will allow you to move the prop.
     
  3. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    I was thinking of trying the same thing, but wasn't sure where to put it :p
    EDIT: I literally tried to run it, my computer got a blue screen with code "ATTEMPTED_WRITE_TO_READONLY_MEMORY"
     
    #3 AdamB, Nov 7, 2017
    Last edited: Nov 7, 2017
  4. EcoNadder77

    EcoNadder77
    Expand Collapse

    Joined:
    May 29, 2017
    Messages:
    1,150
    Check your drivers. I highly doubt adding "baseTranslation" to your Jbeam file was the main cause of your BSOD.
     
  5. AdamB

    AdamB
    Expand Collapse

    Joined:
    Mar 8, 2016
    Messages:
    531
    it was my computer being stupid again. (I'm going to reset it soon)
    everytime I would reset my car, the prop would move slightly in a weird direction. It's ok, i don't need it to work. Thanks anyway :)
     
  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