Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Layers allow multiple objects to occupy the same floor tiles. Ideally the objects are designed so that they don't intersect with any objects that occupy the same layer.
In general:
Layer 0 is for objects that sit on the floor and occupy the space up to around 2m high (whatever top of a wall is).
Layer 1 is for objects above this. E.g. bridges, roofs, archways.
Layer -1 is for underground e.g. sunken tanks and tunnels.
Objects can occupy multiple layers. So the tunnel, for example, occupies layer -1 everywhere, but also layer 0 where the steps are (otherwise you could place objects on this).
If you look in the "map" behaviour, you can assign layers to individual tiles.
A layer 1 object can overlay a layer 0 or -1 object.
A layer 0,1 can only overlap with a -1.
A layer -1,0,1 cannot overlap anything.
I haven't tested it, but you should be able to define your own layers. A layer 2 should be able to be built anywhere there is a floor tile.
The funny behaviour you are noticing may be because I have assigned default behaviour to tanks to make them back compatible.
- all tanks are auto assigned layer 0
- sunken tanks are auto assigned layer -1 as well
- anything taller than a deep tank is assigned layer 1 as well. This is identified via the "accessHeight" variable. Basically anything with a value of 2 or higher.
You can override these behaviours by setting the layers variable manually, this is just the default behaviour so that all existing mod tanks will work in an intuitive way for players (hopefully!).
true you can make more layers simply by using 2 or higher though in my experience with scenery those lose their function, also wont sink in sunken tanks, i presume the layer coding is more designed for building stuff like the roofs instead of scenery :P
the only thing i find weird is, i can place a -1, a 0 and a 1 object on the same spot on the floor but it i cant do that inside a tank, only 1 of them will count(the 0) for the values the rest will pretty much act like tileless
sorry if i sound complicated, simply trying to have 2 or more scenery on the same spot and make their values still count, i thought the layer system would be ideal for it
I'll consider adding layer functionality here too. :)