Modding Help It is possible to manipulate the arms of the player in a tech lua code?

Discussion in 'Starbound Modding' started by Chofranc, Mar 20, 2017.

  1. Chofranc

    Chofranc Big Damn Hero

    Hi, i wonder if is possible to manipulate the arms of the player in a tech or through lua code like the zenshoot does in bows changing the arms of the player using this arms frames: "drawArmFrames" : ["rotation", "swim.2", "swim.2", "swimIdle.1", "swimIdle.1"]
     
  2. Cyel

    Cyel Starship Captain

    I think only activeitem scripts can do that.
    Code:
    #### `void` activeItem.setBackArmFrame([`String` armFrame])
    
    Sets the arm image frame that the item should use when held behind the player, or clears it to the default rotation arm frame if no frame is specified.
    
    ---
    
    #### `void` activeItem.setFrontArmFrame([`String` armFrame])
    
    Sets the arm image frame that the item should use when held in front of the player, or clears it to the default rotation arm frame if no frame is specified.
    
    ---
    
    #### `void` activeItem.setTwoHandedGrip(`bool` twoHandedGrip)
    
    Sets whether the item should be visually held with both hands. Does not alter the functional handedness requirement of the item.
    
    ---
    
    #### `void` activeItem.setRecoil(`bool` recoil)
    
    Sets whether the item is in a recoil state, which will translate both the item and the arm holding it slightly toward the back of the character.
    
    ---
    
    #### `void` activeItem.setOutsideOfHand(`bool` outsideOfHand)
    
    Sets whether the item should be visually rendered outside the owner's hand. Items outside of the hand will be rendered in front of the arm when held in front and behind the arm when held behind.
    
    ---
    
    #### `void` activeItem.setArmAngle(`float` angle)
    
    Sets the angle to which the owner's arm holding the item should be rotated.
     

Share This Page