Prototype/HighlightBoxEntity: Difference between revisions
Jump to navigation
Jump to search
(mention that the they can also be non-entity-targeted) |
m (words) |
||
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. | Used to attach graphics for [[Types/CursorBoxType|cursor boxes]] to entities during runtime. HighlightBoxEntity can also be independent from entities so it is 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:04, 27 April 2021
Template:Prototype parent Used to attach graphics for cursor boxes to entities during runtime. HighlightBoxEntity can also be independent from entities so it is 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.