Ghost entity used as "building mission"
Posted: Mon Mar 07, 2016 12:46 pm
Hi,
sorry in advance for my bad english.
I try to write my first mod for factorio : it will ask the player to build a custom assembly machine at a random place on the map. Which should be the only spot where it can be build.
So far i was able to create my custom assembly machine and a new ore to feed it.
Now i try to spawn a ghost of this building on the map ... but i'm unable to ... even with roboport up and running ... i cannot change the entity type to "ghost" because it's a read only property, and i can't find any existing mod using this kind of behavior. (nor proper documentation ^^)
So i'm here to ask some help, perhaps it's the wrong approach, but i would really like to use a ghost entity (not minable) placed on the map right after map generation (or mod activation).
Thanks in advance for any helping hand.
sorry in advance for my bad english.
I try to write my first mod for factorio : it will ask the player to build a custom assembly machine at a random place on the map. Which should be the only spot where it can be build.
So far i was able to create my custom assembly machine and a new ore to feed it.
Now i try to spawn a ghost of this building on the map ... but i'm unable to ... even with roboport up and running ... i cannot change the entity type to "ghost" because it's a read only property, and i can't find any existing mod using this kind of behavior. (nor proper documentation ^^)
So i'm here to ask some help, perhaps it's the wrong approach, but i would really like to use a ghost entity (not minable) placed on the map right after map generation (or mod activation).
Thanks in advance for any helping hand.