Jump to content

OnGround deployables have wrong sort order


Hornete
  • Pending

image.png.a9cc25bfdfbd3336f137ccede2987f50.png

The boat placer (and other OnGround placers(?)) seem to have the wrong layering, and can render over objects such as myself in the image above


Steps to Reproduce

1. Hover a OnGround placable
2. Notice it renders over objects and creatures.

  • Like 1
  • Sad Dupe 1
  • Potato Cup 1



User Feedback


Resolved by adding these lines at MakePlacer (prefabutil.lua):

  • LAYER_WORLD_BACKGROUND to display it below the layer commonly used by billboard entities
  • Sort order 7 to display on top of everything else on the same layer (e.g. boat planks)
if onground then
	inst.AnimState:SetOrientation(ANIM_ORIENTATION.OnGround)
	inst.AnimState:SetLayer(LAYER_WORLD_BACKGROUND)
	inst.AnimState:SetSortOrder(7)
end
Edited by Tykvesh
  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...