Prototype/HighlightBoxEntity: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
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. 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 10:58, 27 April 2021
Template:Prototype parent Used to attach graphics for cursor boxes to entities during runtime. 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.