Modding:Entity Json Properties: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 543: Line 543:
     <td>string</td>
     <td>string</td>
     <td></td>
     <td></td>
     <td></td>
     <td>The identifier of the animation.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 554: Line 554:
     <td scope="row"><div class="tt" data-tt-id="p_animations_weight" data-tt-parent="p_animations">Weight</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_animations_weight" data-tt-parent="p_animations">Weight</div></td>
     <td>decimal number</td>
     <td>decimal number</td>
     <td></td>
     <td>1.0</td>
     <td></td>
     <td>Animations with a high weight value will be prioritized over the other animations when the animations are combined.
For example if the player aims with a bow while jumping around, the aiming animation has a higher weight (for the upper body) so the jumping animation will be reduced.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 561: Line 562:
     <td>key: string, value: decimal number</td>
     <td>key: string, value: decimal number</td>
     <td></td>
     <td></td>
     <td></td>
     <td>Allows you to specify a weight for each element individually.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 567: Line 568:
     <td>decimal number</td>
     <td>decimal number</td>
     <td>1.0</td>
     <td>1.0</td>
     <td></td>
     <td>The speed of the animation.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 573: Line 574:
     <td>boolean</td>
     <td>boolean</td>
     <td>false</td>
     <td>false</td>
     <td></td>
     <td>Whether the animation should be affected by the walk speed.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 591: Line 592:
     <td></td>
     <td></td>
     <td></td>
     <td></td>
     <td></td>
     <td>Specifies by what the animation is triggered.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 717: Line 718:
     <td></td>
     <td></td>
     <td></td>
     <td></td>
     <td>Add the animation without taking other animations into consideration, but add it's weight for averaging </td>
     <td>Add the animation without taking other animations into consideration, but add it's weight for averaging.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 723: Line 724:
     <td>key: string, value: string</td>
     <td>key: string, value: string</td>
     <td></td>
     <td></td>
     <td>Allows you to specify a blend mode for each element.</td>
     <td>Allows you to specify a blend mode for each element individually.</td>
  </tr>
 
  code
  public string Animation;
        [JsonProperty]
        public float Weight = 1f;
        [JsonProperty]
        public Dictionary<string, float> ElementWeight = new Dictionary<string, float>();
        [JsonProperty]
        public float AnimationSpeed = 1f;
        [JsonProperty]
        public bool MulWithWalkSpeed = false;
        [JsonProperty]
        public float EaseInSpeed = 10f;
        [JsonProperty]
        public float EaseOutSpeed = 10f;
        [JsonProperty]
        public AnimationTrigger TriggeredBy;
        [JsonProperty]
        public EnumAnimationBlendMode BlendMode = EnumAnimationBlendMode.Add;
        [JsonProperty]
        public Dictionary<string, EnumAnimationBlendMode> ElementBlendMode = new Dictionary<string, EnumAnimationBlendMode>();
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_animations_info" data-tt-parent="p_animations" data-invisible="true"></div></td>
    <td colspan="3">
Coming soon ...
</td>
   </tr>
   </tr>
   <tr>
   <tr>
Confirmedusers, editor, Administrators
886

edits