buildings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
buildings [2018/08/17 00:38] – polymorphgames | buildings [2018/10/18 17:52] – [Construction Steps] polymorphgames | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Buildings ====== | ====== Buildings ====== | ||
- | Here is an exemple | + | Here is an example |
- | Buildings are ensemble of building parts. Simple buildings have only one part. | + | Buildings are an ensemble of building parts. Simple buildings have only one part. |
===== Scripts ===== | ===== Scripts ===== | ||
Line 47: | Line 47: | ||
TODO | TODO | ||
<code lua> | <code lua> | ||
- | myMod:setAssetId(" | + | myMod:registerAssetId(" |
- | myMod:setAssetId(" | + | myMod:registerAssetId(" |
</ | </ | ||
Line 55: | Line 55: | ||
===== Construction Steps ===== | ===== Construction Steps ===== | ||
- | TODO | + | Buildings are built step by step. The construction system is based on naming. |
+ | |||
+ | You can specify a prefab to be used as construction visual. | ||
+ | |||
+ | The system will parse the prefab and search for object with a name starting with '' | ||
+ | |||
+ | All nodes called '' | ||
+ | |||
+ | The rest of the nodes ('' | ||
+ | |||
+ | If more than one node have the same order number, they inner order will be randomized. For instance '' | ||
+ | |||
+ | Note that all children of a node starting with '' |