Prototype/ArtilleryFlare: Difference between revisions
(Set prototype parent) |
(Updated styling of prototype doc migration note) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/ArtilleryFlarePrototype.html https://lua-api.factorio.com/latest/prototypes/ArtilleryFlarePrototype.html] | |||
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | |||
The entity spawned by the [[artillery targeting remote]]. | |||
{{Prototype parent|Prototype/Entity}} | |||
The entity spawned by the [[artillery targeting remote]]. | |||
{{Prototype TOC|artillery-flare}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/Entity]]. | ||
{{Prototype property|pictures|[[Types/AnimationVariations|AnimationVariations]]}} | |||
Picture variation count and individual frame count must be equal to shadow variation count. | |||
{{Prototype property|life_time|[[Types/uint16|uint16]]}} | |||
== Optional properties == | == Optional properties == | ||
= | {{Prototype property|shadows|[[Types/AnimationVariations|AnimationVariations]]|optional=true}} | ||
Shadow variation variation count and individual frame count must be equal to picture variation count. | |||
{{Prototype property|render_layer|[[Types/RenderLayer|RenderLayer]]|"object"}} | |||
{{Prototype property|render_layer_when_on_ground|[[Types/RenderLayer|RenderLayer]]|"lower-object"}} | |||
{{Prototype property|regular_trigger_effect|[[Types/TriggerEffect|TriggerEffect]]|optional=true}} | |||
{{Prototype property|regular_trigger_effect_frequency|[[Types/uint32|uint32]]|0|optional=true}} | |||
{{Prototype property|ended_in_water_trigger_effect|[[Types/TriggerEffect|TriggerEffect]]|optional=true}} | |||
{{Prototype property|movement_modifier_when_on_ground|[[Types/double|double]]|0.8|optional=true}} | |||
{{Prototype property|movement_modifier|[[Types/double|double]]|1|optional=true}} | |||
{{Prototype property|creation_shift|[[Types/vector|vector]]|optional=true}} | |||
{{Prototype property|initial_speed|[[Types/vector|vector]]|optional=true}} | |||
{{Prototype property|initial_height|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|initial_vertical_speed|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|initial_frame_speed|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|shots_per_flare|[[Types/uint32|uint32]]|1|optional=true}} | |||
How many artillery shots should be fired at the position of this flare. | |||
{{Prototype property|early_death_ticks|[[Types/uint32|uint32]]|3 * 60|optional=true}} | |||
How long this flare stays alive after <code>shots_per_flare</code> amount of shots have been shot at it. | |||
{{Prototype property|shot_category|[[Types/string|string]]|optional=true}} | |||
Name of a [[Prototype/AmmoCategory]]. | Name of a [[Prototype/AmmoCategory]]. | ||
== Differing defaults == | == Differing defaults == | ||
<code>map_color</code> is mandatory. | <code>map_color</code> is mandatory. | ||
<code>selection_priority</code> defaults to 48 instead of 50. |
Latest revision as of 10:42, 21 September 2023
The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/ArtilleryFlarePrototype.html
This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/ArtilleryFlare
The entity spawned by the artillery targeting remote.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
pictures
Type: AnimationVariations
Picture variation count and individual frame count must be equal to shadow variation count.
life_time
Type: uint16
Optional properties
shadows
Type: AnimationVariations
Shadow variation variation count and individual frame count must be equal to picture variation count.
render_layer
Type: RenderLayer
Default: "object"
render_layer_when_on_ground
Type: RenderLayer
Default: "lower-object"
regular_trigger_effect
Type: TriggerEffect
regular_trigger_effect_frequency
Type: uint32
Default: 0
ended_in_water_trigger_effect
Type: TriggerEffect
movement_modifier_when_on_ground
Type: double
Default: 0.8
movement_modifier
Type: double
Default: 1
creation_shift
Type: vector
initial_speed
Type: vector
initial_height
Type: float
Default: 0
initial_vertical_speed
Type: float
Default: 0
initial_frame_speed
Type: float
Default: 1
shots_per_flare
Type: uint32
Default: 1
How many artillery shots should be fired at the position of this flare.
early_death_ticks
Type: uint32
Default: 3 * 60
How long this flare stays alive after shots_per_flare
amount of shots have been shot at it.
shot_category
Type: string
Name of a Prototype/AmmoCategory.
Differing defaults
map_color
is mandatory.
selection_priority
defaults to 48 instead of 50.