Place block with all attributes (settings) of other block
Posted: 25 Jan 2016, 23:00
I'm still thinking, if placing block with absolutly all attributes is even possible.
Like blocks placed in a map returns CBlock, that's obvious. But function PlaceBlock needs CBlockModel, which is the actual model with attributes making the visual of it only (very mostly).
As I see CBlock stores all important information like rotation or position, and the CBlockModel itself. But, how about roads?
I think that CBlock holds the "index model" (like turned road, straight road, crossroad etc.), because BlockModels[0] holds the road with short road (index 0), and BlockModels[1] is a completly diffrent block.
So, how is actually possible to place a block with this "kind of index"? Because it's important for my new plugin (and also for my block replacer).
Any ideas, discuss right here!
Like blocks placed in a map returns CBlock, that's obvious. But function PlaceBlock needs CBlockModel, which is the actual model with attributes making the visual of it only (very mostly).
As I see CBlock stores all important information like rotation or position, and the CBlockModel itself. But, how about roads?
I think that CBlock holds the "index model" (like turned road, straight road, crossroad etc.), because BlockModels[0] holds the road with short road (index 0), and BlockModels[1] is a completly diffrent block.

Any ideas, discuss right here!
