Prototype/Gun: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(0.16)
Line 1: Line 1:
== Basics ==
== Basics ==
A gun. A weapon to deal damage to entities.
A gun. A weapon to deal damage to entities. Extends [[Prototype/Item]].


== Properties ==
== Mandatory properties ==
=== type ===
This prototype inherits all the properties from [[Prototype/Item]].
'''Type''': [[Types/string]]
 
Must be "gun".
 
=== name ===
'''Type''': [[Types/string]]
 
The unique name of this gun.


=== attack_parameters ===
=== attack_parameters ===
'''Type''': [[Types/AttackParameters]]
'''Type''': [[Types/AttackParameters]]


The information the item needs to know in order to know what ammo it requires, the sounds, and range. (See: [[Types/AttackParameters]])
The information the item needs to know in order to know what ammo it requires, the sounds, and range.

Revision as of 09:23, 22 May 2018

Basics

A gun. A weapon to deal damage to entities. Extends Prototype/Item.

Mandatory properties

This prototype inherits all the properties from Prototype/Item.

attack_parameters

Type: Types/AttackParameters

The information the item needs to know in order to know what ammo it requires, the sounds, and range.