GetMidTexturePosition

From ZDoom Wiki
Jump to navigation Jump to search


Note: This feature is for ZScript only.


Line

native bool, double, double GetMidTexturePosition (int side) (New from 4.12.1)

Usage

Returns the boundaries of the middle texture at the specified side of the calling line. If one or both of the sides is not present (It's an invalid two-sided middle texture), then the first boolean return will be false.

Parameters

  • side: The side of the line to check, 0 is the front side, 1 is the back side.

Return value

Returns 3 values:

  • Whether or not the line has a valid 2-sided middle texture, as opposed to being something like a void wall. Make sure this is true if you only want to check proper middle textures like fences and railings.
  • The absolute height of the middle textures' top boundary.
  • The absolute height of the middle textures' bottom boundary.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.