Update doc for surface.create_entity{target=}

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Update doc for surface.create_entity{target=}

Post by eradicator »

Currently it doesn't mention that target is also the entity that combat robots follow. It sounds more like shooting_target. Maybe it's both?

Code: Select all

target :: LuaEntity (optional): Entity with health for the new entity to target.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Update doc for surface.create_entity{target=}

Post by Rseding91 »

There are most likely several places that don't mention they use different values provided through create_entity. I don't particularly want to go hunting over the code base to find all of them and then manually maintain a list of each ones usage in a separate txt file for create_entity documentation. Every time we do that the list just gets outdated a week later and is perpetually broken; the only way those lists stay correct is if they're auto-generated from the code and I don't see that happening here.

If someone else wants to sign up for maintaining those manual lists they're free to do so.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding interface requests”