MODの作り方/Prototype/Entity/EntityWithHealth/Unit

Last-modified: 2016-08-04 (木) 09:52:25

Unit

プレイヤーを攻撃するEntity

  • run_animation
    走った時のアニメーション?
    type:RotatedAnimation※現在検証中
    run_animation =
      {
        filename = "__base__/graphics/entity/small-biter/small-biter-run.png",
        still_frame = 4,
        frame_width = 86,
        frame_height = 59,
        frame_count = 16,
        direction_count = 16,
        shift = {0.359375, -0.15625},
        axially_symmetrical = false
      }
  • attack_parameters
    type:AttackParameters(英語wiki)
  • movement_speed
    移動速度?
    type:double
  • distance_per_frame
    フレームごとの移動距離?
    type:double
  • dying_sound
    死んだときの音
  • pollution_to_join_attack
    汚染源を攻撃しに行くまでに必要な汚染の量
    type:double
  • distraction_cooldown
    ?
    type:tick