Modding Help Moving Vehicle Up / Vehicle Sprites

Discussion in 'Starbound Modding' started by Lefl, Dec 16, 2015.

  1. Lefl

    Lefl Phantasmal Quasar

    Hello,
    Im a little bit noob with lua but anyway:
    I wanted to create a new Vehicle (
    [​IMG]

    which can really fly and not just hover, my only problem is that i cant figure out how to get the Vehicle to move up/down when i press up/down.
    For the horizontal movement there is this:
    Code:
    mcontroller.approachXVelocity(self.targetHorizontalVelocity, self.horizontalControlForce)
    is there anything like that for Vertical movement (and i dont mean jumping)

    Can someone help me?

    EDIT: Got it to work with:
    Code:
    mcontroller.setYVelocity()
    But now i cant figure out the 2 sprite system of the vehicles
     
    Last edited: Dec 16, 2015
  2. MarauderKnight3

    MarauderKnight3 Void-Bound Voyager

    There should be an approachYVelocity with the same arguments.
     
    Last edited: Nov 8, 2018

Share This Page