Modding Discussion player.equippedItem. How it works?

Discussion in 'Starbound Modding' started by artguk, Jul 11, 2018.

  1. artguk

    artguk Scruffy Nerf-Herder

    Forgive my poor English.
    I want, for example, to find out if the item is equipped in the head slot and execute a certain code, if it is not.
    I do not understand why this function does not work. What am I doing wrong?
    There is a function in the LUA script:
    I tried different conditions, but this condition does not work. Help me please ...
     
  2. artguk

    artguk Scruffy Nerf-Herder

    Really no one can help? :fishbowl:
     
  3. Errors4l

    Errors4l Spaceman Spiff

    Where are you running this code? Not all scripts have access to the player function table. For example, scripted interfaces can access it but objects or tech can not.
     
  4. artguk

    artguk Scruffy Nerf-Herder

    In the Status Effect script.
    Need to check for a certain element of clothing...
     
    Last edited: Jul 13, 2018
  5. artguk

    artguk Scruffy Nerf-Herder

    I continue to try but nothing happens...Really no one tried to use this function? =(
     

Share This Page