Modding Help Context-sensitive textures

Discussion in 'Starbound Modding' started by Pastukh, Aug 30, 2022.

  1. Pastukh

    Pastukh Yeah, You!

    Hi, is there any way to change certain texture if requirements are met? Like change arms textrure if player wear certain chestwear or change body texture if he wears no chestwear.

    I think it should look like this:
    "Function ?()
    if player.getItemSlot(legs) == "none" and player.getItemSlot(legsCosmetic) == "none"
    then
    ?
    else
    ?
    end
    end"
    But I don't know how to change a texture using lua.
     
    Last edited by a moderator: Aug 30, 2022
  2. Pangaea

    Pangaea Forum Moderator

    @Pastukh Please note that unnecessary stacking of posts is frowned on. Please wait for others to reply or edit your post. I've merged your posts.
     

Share This Page