1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Closed [Modding Lua API] entity.getOutboundNodeIds() returns empty table.

Discussion in 'Starbound Support' started by iUltimateLP, Jan 7, 2016.

Thread Status:
Not open for further replies.
  1. iUltimateLP

    iUltimateLP Orbital Explorer

    Hey, I already asked this in the Modding Help, but I believe this is an issue so I will report this here:
    Version: Unstable - Glad Giraffe Update 3
    Test code:
    Code:
    function onInteraction(args)
      local connectedIds = entity.getOutboundNodeIds(0) -- 0 is the node index
      world.logInfo(#connectedIds) -- Returns 0 if any lamp or something is connected (its obvious that it should be a higher value)
    
      for k,v in ipairs(connectedIds) do
        world.logInfo("Index: "..k.." - EntityId: "..v)
      end -- this one does nothing, because the table is empty
    end
    I added comments so you should see where the problem relies on.
    Hope you can either tell me an alternative, but I don't think there is another one, or address this as a bug and it will be fixed in one of the future updates.
     
    Last edited: Jan 7, 2016
Thread Status:
Not open for further replies.

Share This Page