Modding Help A few questions regarding weapons...

Discussion in 'Starbound Modding' started by SpazDiesFirst360.0, Nov 15, 2019.

  1. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    • Is it possible to make a weapon that uses less energy based on light level?
    • Is it possible to make a weapon that fires projectiles based on the first throwable in their inventory?
    EDIT: Now sounds like answerable questions.
     
    Last edited: Nov 18, 2019
  2. Zaakari

    Zaakari Pangalactic Porcupine

    I'm not sure about the second one, but have you tried using "world.lightLevel()" in a weapon ability's Lua file?
    Because if that works, then it should definitely be possible.
     
  3. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    I have never tried that before, but I should. I think that most, if not all, the functions in the world table are accessible by most scripts.
     
  4. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    Tried using world.lightLevel() in a weapon's lua file. It works perfectly fine, and I'm close to finishing a weapon using this function.
     
  5. Zaakari

    Zaakari Pangalactic Porcupine

    Good to know. Thank you.
     

Share This Page