Prototype/Unit

From Official Factorio Wiki
Revision as of 20:54, 5 August 2019 by Bilka (talk | contribs) (Converted to SMW format)
Jump to navigation Jump to search

Template:Prototype parent Entity that attacks players.

Template:Prototype TOC

Usage in base

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

Template:Prototype property

Template:Prototype property Requires animation in attack_parameters. Requires ammo_type in attack_parameters.

Template:Prototype property Must be equal to or greater than 0.

Template:Prototype property

Template:Prototype property The amount of pollution that has to be absorbed by the unit's spawner before the unit will leave the spawner and attack the source of the pollution.

Template:Prototype property

Template:Prototype property Max is 100.

Note: Setting to 50 or above can lead to undocumented behavior of individual units creating groups on their own when attacking or being attacked.

Template:Prototype property

Optional properties

Template:Prototype property

Template:Prototype property The sound file to play when entity dies.

Template:Prototype property

Template:Prototype property If the unit is immune to movement by belts.

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Table with the following mandatory properties:

  • warmup_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • warmup2_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • attacking_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • cooldown_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • prepared_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • back_to_walk_frame_sequence - Array of float - Indices of frames from the attack parameter animation.
  • warmup_animation_speed - float
  • attacking_animation_speed - float
  • cooldown_animation_speed - float
  • prepared_animation_speed - float
  • back_to_walk_animation_speed - float