CheckPosition

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


Actor

bool CheckPosition(Vector2 pos, bool actorsonly, FCheckPosition tm)

Usage

Checks if the Actor is colliding with anything at the given position.

Parameters

  • Vector2 pos
The xy position to check at. This is not relative to the Actor.
  • bool actorsonly
False by default. If true, ignores all lines.
  • FCheckPositon tm
Default is null. A FCheckPosition struct that will be filled with the relevant information.

Return value

Returns true if nothing is blocking the Actor at the position.

The function also fills the values of the FCheckPosition struct, documented separately.

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.


See also