Prototype/EnemySpawner: Difference between revisions
Muppet9010 (talk | contribs) (→max_friends_around_to_spawn: - add descriptive comment) |
(Added prototype type to page) |
||
Line 1: | Line 1: | ||
== Basics == | == Basics == | ||
Prototype type: '''unit-spawner''' | |||
Extends [[Prototype/EntityWithHealth]]. | Extends [[Prototype/EntityWithHealth]]. | ||
Revision as of 16:27, 21 January 2019
Basics
Prototype type: unit-spawner
Extends Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
dying_sound
Type: Types/Sound
animations
Type: Types/AnimationVariations
max_count_of_owned_units
Type: Types/uint32
Count of enemies this spawner can sustain.
max_friends_around_to_spawn
Type: Types/uint32
How many friendly units are required within the spawning_radius of this spawner for it to stop producing more units.
spawning_cooldown
Type: Types/Range
Ticks for cooldown after unit is spawned
spawning_radius
Type: Types/double
How far from the spawner can the units be spawned.
spawning_spacing
Type: Types/double
What spaces should be between the spawned units.
max_richness_for_spawn_shift
Type: Types/double
Max richness to determine spawn shift. Spawn shift is linear interpolation between 0 and maxSpawnShift.
max_spawn_shift
Type: Types/double
Caps how much richness can be added on top of evolution when spawning units. (See also [1])
pollution_absorbtion_absolute
Type: Types/double
pollution_absorbtion_proportional
Type: Types/double
call_for_help_radius
Type: Types/double
result_units
Type: Types/table of Types/UnitSpawnDefinition
Array of the Prototype/Units that this spawner can spawn and their spawn probabilities. The sum of probabilities is expected to be 1.0. The array must not be empty.