Page 1 of 1

Change Z index for entities?

Posted: Sat Aug 22, 2020 3:49 pm
by Linnun
Is there any way to change the z index (as in drawing order) of entities to decide which ones are drawn on top?

That way for example you could make concrete draw on top of ore fields instead of having the ore drawn on top of the concrete paths.

Re: Change Z index for entities?

Posted: Sat Aug 22, 2020 5:08 pm
by DaveMcW
A few entities support render_layer, which has a limited set of z-index values.

Ore is not supported, but if you try really hard you can make it invisible and add a SimpleEntity for the render_layer.

Re: Change Z index for entities?

Posted: Sun Aug 23, 2020 1:16 am
by Linnun
Thank you for those hints, I will look into it :)

Re: Change Z index for entities?

Posted: Wed Sep 02, 2020 5:49 pm
by Illiander42
You could also look at how the Coverup mod does that for ore.

Assuming that's specifically what you're after.