Prototype/HighlightBoxEntity: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
(mention that the they can also be non-entity-targeted)
Line 1: Line 1:
{{Prototype parent|Prototype/Entity}}
{{Prototype parent|Prototype/Entity}}
Used to attach graphics for [[Types/CursorBoxType|cursor boxes]] to entities during runtime. See [https://lua-api.factorio.com/latest/LuaSurface.html#LuaSurface.create_entity LuaSurface.create_entity] for the available options for type "highlight-box".
Used to attach graphics for [[Types/CursorBoxType|cursor boxes]] to entities during runtime. They can also be independent from entities so they are simply drawn somewhere in the world. See [https://lua-api.factorio.com/latest/LuaSurface.html#LuaSurface.create_entity LuaSurface.create_entity] for the available options for type "highlight-box".


The <code>[[Prototype/Entity#collision_box|collision_box]]</code> of the highlight box prototype is ignored during runtime, instead the "bounding_box" given in create_entity() or the selection box of the target entity is used.
The <code>[[Prototype/Entity#collision_box|collision_box]]</code> of the highlight box prototype is ignored during runtime, instead the "bounding_box" given in create_entity() or the selection box of the target entity is used.


{{Prototype TOC|highlight-box|no-properties=true}}
{{Prototype TOC|highlight-box|no-properties=true}}

Revision as of 11:01, 27 April 2021

Template:Prototype parent Used to attach graphics for cursor boxes to entities during runtime. They can also be independent from entities so they are simply drawn somewhere in the world. See LuaSurface.create_entity for the available options for type "highlight-box".

The collision_box of the highlight box prototype is ignored during runtime, instead the "bounding_box" given in create_entity() or the selection box of the target entity is used.

Template:Prototype TOC