Types/AmmoType: Difference between revisions
Jump to navigation
Jump to search
m (fixed link) |
(Updated to 0.16) |
||
Line 3: | Line 3: | ||
== Mandatory properties == | == Mandatory properties == | ||
=== category === | === category === | ||
'''Type''': [[Prototype/AmmoCategory]] | '''Type''': [[Types/string]] | ||
Defines whether the attack will be affected by upgrades. | |||
Name of a [[Prototype/AmmoCategory]]. Defines whether the attack will be affected by upgrades. | |||
== Optional properties == | == Optional properties == | ||
== action == | |||
'''Type''': [[Types/ | === action === | ||
'''Type''': [[Types/Trigger]] | |||
Describes actions taken upon attack happening. | Describes actions taken upon attack happening. | ||
=== clamp_position === | |||
'''Type''': [[Types/bool]] | |||
'''Default''': false | |||
=== energy_consumption === | |||
'''Type''': [[Types/Energy]] | |||
=== range_modifier === | |||
'''Type''': [[Types/double]] | |||
'''Default''': 1 | |||
=== cooldown_modifier === | |||
'''Type''': [[Types/double]] | |||
'''Default''': 1 | |||
=== consumption_modifier === | |||
'''Type''': [[Types/float]] | |||
'''Default''': 1 | |||
=== target_type === | |||
'''Type''': [[Types/string]] | |||
'''Default''': "entity" | |||
Either "entity", "position" or "direction". If this is "entity", <code>clamp_position</code> is forced to be false. |
Revision as of 16:42, 10 December 2018
Basics
Definition of actual parameters used in attack.
Mandatory properties
category
Type: Types/string
Name of a Prototype/AmmoCategory. Defines whether the attack will be affected by upgrades.
Optional properties
action
Type: Types/Trigger
Describes actions taken upon attack happening.
clamp_position
Type: Types/bool
Default: false
energy_consumption
Type: Types/Energy
range_modifier
Type: Types/double
Default: 1
cooldown_modifier
Type: Types/double
Default: 1
consumption_modifier
Type: Types/float
Default: 1
target_type
Type: Types/string
Default: "entity"
Either "entity", "position" or "direction". If this is "entity", clamp_position
is forced to be false.