Modding Help Need Help Using RNG to Power Objects

Discussion in 'Starbound Modding' started by SpazDiesFirst360.0, Jan 13, 2020.

  1. SpazDiesFirst360.0

    SpazDiesFirst360.0 Phantasmal Quasar

    I want to create an object that randomly chooses an output node to activate when powered. I tried looking at the NOT object to get a general understanding, but it looks like it uses object.setAllOutputNodes(storage.state). Is there a function that activates only one output node?

    I think I figured it out, I just need to run some tests to see if I did it correctly.
    Last edited by a moderator: Jan 14, 2020
  2. bk3k

    bk3k Oxygen Tank

    Yep check out all the functions available in \starbound\doc\lua\

Share This Page