Modding Help Custom global table

Discussion in 'Starbound Modding' started by apexia, Apr 23, 2020.

  1. apexia

    apexia Space Hobo

    I was wondering if there was a way to make a global table accessible by all objects .lua files, I get that it may be possible hence the StardustLib but i'm not exactly sure how to implement it
     
  2. bk3k

    bk3k Oxygen Tank

    I'm not sure what exactly you are trying to achieve by that. Every scripted entity has its own environment (_ENV) but they can send messages through the engine - specifically the messaging system. Well you could also read/write to world properties too. Global is the scope within that _ENV, but it doesn't refer to anything all entities can access.
     

Share This Page