There is an event for when the player (not a bot) builds an entity. Is there a way to detect when a player places a ghost? Not a blueprint, but a single entity ghost. My LD Circuit mod automatically adds circuit wires when the player places a long-distance power pole with a small supply range. I would like to be able to do this on ghost placement as well.
Thank you in advance (and likely afterwards too).
Ghost entity placement event?
- Omnifarious
- Filter Inserter
- Posts: 267
- Joined: Wed Jul 26, 2017 3:24 pm
- Contact:
Re: Ghost entity placement event?
Ghosts are just another type of Entity so all the standard events should apply. When you build a ghost of electric pole you will get `on_built_entity` event with created_entity pointing to the entity-ghost for which ghost_name=<pole name>.
- Omnifarious
- Filter Inserter
- Posts: 267
- Joined: Wed Jul 26, 2017 3:24 pm
- Contact:
Re: Ghost entity placement event?
Oh, nifty! Thank you. That definitely solves my problem.