From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


native double ZatPointDist(Vector2 v, double dist) const


Works similar to ZatPoint but a distance from the world origin can be manually specified. Normally the SecPlane's D value is used. Useful if a new z value needs to be calculated before performing an action (e.g. making sure the new z value does not clip into the ceiling/floor).


  • v - The absolute xy map coordinate to check.
  • dist - The distance to use from the world origin.

Return Value

Returns the z height of the plane at the given point and distance.


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.