Prototype/Arrow: Difference between revisions
Jump to navigation
Jump to search
(Set prototype parent) |
(Updated styling of prototype doc migration note) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''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/ArrowPrototype.html https://lua-api.factorio.com/latest/prototypes/ArrowPrototype.html] | |||
</p><p>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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | |||
{{Prototype parent|Prototype/Entity}} | {{Prototype parent|Prototype/Entity}} | ||
The arrows used for example in the campaign, they are literally just arrows. | |||
{{Prototype TOC|arrow}} | |||
== | == Mandatory properties == | ||
{{Prototype property|arrow_picture|[[Types/Sprite|Sprite]]}} | |||
== | == Optional properties == | ||
{{Prototype property|circle_picture|[[Types/Sprite|Sprite]]|optional=true}} | |||
{{Prototype property|blinking|[[Types/bool|bool]]|false|optional=true}} | |||
== Example == | == Example == | ||
<syntaxhighlight lang="lua">{ | <syntaxhighlight lang="lua">{ |
Latest revision as of 10:42, 21 September 2023
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/ArrowPrototype.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/Arrow
The arrows used for example in the campaign, they are literally just arrows.
Mandatory properties
arrow_picture
Type: Sprite
Optional properties
circle_picture
Type: Sprite
blinking
Type: bool
Default: false
Example
{
type = "arrow",
name = "orange-arrow-with-circle",
flags = {"placeable-off-grid", "not-on-map"},
blinking = true,
arrow_picture =
{
filename = "__core__/graphics/arrows/gui-arrow-medium.png",
priority = "low",
width = 58,
height = 62
},
circle_picture =
{
filename = "__core__/graphics/arrows/gui-arrow-circle.png",
priority = "low",
width = 50,
height = 50
}
},