Prototype/Gate
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/GatePrototype.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/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.