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

Bug/Issue Bug with the setNpcItemSlot function

Discussion in 'Starbound Support' started by Mobius58, Nov 10, 2018.

  1. Mobius58

    Mobius58 Void-Bound Voyager

    setNpcItemSlot does not work for sheathed weapons
    I've been playing around with this trying to get it to work and I can manually change an npc's sheathed items in game by using the enttityeval command and changing self.sheathedItems tot he desired item. But the function itself does not work I believe this is from the setItemSlot function not working for the sheathed weapons as Ive tested all the other functions and they are working fine.

    In more detail the setNpcItemSlot does basically what I did manually to change the sheathed weapon by using npc.getItemSlot("sheathedprimary") and sets that equal to self.sheathedItem. When the getItemSlot is used in game through entityeval it works and returns the npc's sheathed weapon. So by process of elimination, leaves the only pieceof the funcion that wasn't tested(setItemSlot function call) as the probable issue area.

    Hope this helps

Share This Page