Modding Help How do I use mcontroller.controlFly()?

Discussion in 'Starbound Modding' started by LucaEpic, Sep 9, 2017.

  1. LucaEpic

    LucaEpic Scruffy Nerf-Herder

    I'm very new with LUA, so I'm quite confused on how I use mcontroller.controlFly().
    I keep getting this error:
    Code:
    (LuaConversionException) Error converting LuaValue to type 'class Star::Vector<float,2>'
     
  2. bk3k

    bk3k Oxygen Tank

    It expects a coordinate, and is getting something which is not a coordinate - usually see errors like that when you're accidentally passing a nil because of misspelling/capitalization.

    The coordinates are like this

    Code:
    location = {12, 5}
    
    Of course I can't tell you exactly why you hit that error without seeing your code. I can only speculate. You might also look in the \starbound\doc\lua\ folder. Where that isn't clear enough for you, do a string search on the assets to find real examples of the code being used.
     

Share This Page