Prototype/Gate: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Basics == Extends Prototype/EntityWithHealth. == Mandatory properties == This prototype inherits all the properties from Prototype/EntityWithHealth. === vertical_...") |
(1.1.51: Prototype/EntityWithOwner added) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithOwner}} | |||
A [[gate]]. | |||
{{Prototype TOC|gate}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|vertical_animation|[[Types/Animation|Animation]]}} | |||
{{Prototype property|horizontal_animation|[[Types/Animation|Animation]]}} | |||
{{Prototype property|vertical_rail_animation_left|[[Types/Animation|Animation]]}} | |||
{{Prototype property|vertical_rail_animation_right|[[Types/Animation|Animation]]}} | |||
{{Prototype property|horizontal_rail_animation_left|[[Types/Animation|Animation]]}} | |||
{{Prototype property|horizontal_rail_animation_right|[[Types/Animation|Animation]]}} | |||
{{Prototype property|vertical_rail_base|[[Types/Animation|Animation]]}} | |||
{{Prototype property|horizontal_rail_base|[[Types/Animation|Animation]]}} | |||
{{Prototype property|wall_patch|[[Types/Animation|Animation]]}} | |||
{{Prototype property|opening_speed|[[Types/float|float]]}} | |||
{{Prototype property|activation_distance|[[Types/double|double]]}} | |||
{{Prototype property|timeout_to_close|[[Types/uint32|uint32]]}} | |||
{{Prototype property|open_sound|[[Types/Sound|Sound]]}} | |||
{{Prototype property|close_sound|[[Types/Sound|Sound]]}} | |||
=== | == Optional properties == | ||
{{Prototype property|fadeout_interval|[[Types/uint32|uint32]]|0|optional=true}} | |||
{{Prototype property|opened_collision_mask|[[Types/CollisionMask|CollisionMask]]|<nowiki>{"object-layer", "item-layer", "floor-layer", "water-tile"}</nowiki>|optional=true}} | |||
This collision mask is used when the gate is open. |
Latest revision as of 19:26, 21 January 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Gate
A gate.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
vertical_animation
Type: Animation
horizontal_animation
Type: Animation
vertical_rail_animation_left
Type: Animation
vertical_rail_animation_right
Type: Animation
horizontal_rail_animation_left
Type: Animation
horizontal_rail_animation_right
Type: Animation
vertical_rail_base
Type: Animation
horizontal_rail_base
Type: Animation
wall_patch
Type: Animation
opening_speed
Type: float
activation_distance
Type: double
timeout_to_close
Type: uint32
open_sound
Type: Sound
close_sound
Type: Sound
Optional properties
fadeout_interval
Type: uint32
Default: 0
opened_collision_mask
Type: CollisionMask
Default: {"object-layer", "item-layer", "floor-layer", "water-tile"}
This collision mask is used when the gate is open.