Prototype/HighlightBoxEntity: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (words) |
||
(2 intermediate revisions by the same user not shown) | |||
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. 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}} |
Latest revision as of 11:04, 27 April 2021
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/HighlightBoxEntity
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.