Modding Help Make Weapon Stay on the Background Hand

Discussion in 'Starbound Modding' started by Zaakari, Nov 2, 2019.

  1. Zaakari

    Zaakari Pangalactic Porcupine

    Hey,

    I'm working on a broadsword that is very large. And I thought it would be cool to have the player support the weapon on his shoulder during his idle stance.
    I have been able to achieve that much, but what is rather unsightly is that when I face left, the sword covers my character's face.

    So I was wondering: does anyone know how to keep a weapon on the "background" hand--or, perhaps more accurately, have it switch hands--when the character turns?
     
  2. lerdarim

    lerdarim Void-Bound Voyager

    Afaik there are main and offhand, not foreground/background. I've seen "zLevel" variable in combo animation files, that's drawing order in my understanding, depth, if you will. However, i dunno how to change it depending on direction. Maybe some custom script based on weaponscript to use instead of weapon.lua? These are all theories however, not backed by any real experience :)
     
  3. Zaakari

    Zaakari Pangalactic Porcupine

    Yeah, I'm going to have to do a bunch of testing, I think.
    But thanks for thinking about it.
     

Share This Page