CheckMove
bool CheckMove(Vector2 newpos [, int flags [, FCheckPosition tm]])
Note: This feature is for ZScript only. |
Usage
Checks to see if the caller can successfully move to newpos in the map. Unlike TryMove this function will not actually move the caller if the check passes.
Parameters
- newpos: The xy location to check. Note that this is absolute and not relative to the caller.
- flags: Default is 0.
- PCM_DROPOFF — Don't allow moves where the drop off exceeds the caller's MaxDropOffHeight. Actors with FLOAT or DROPOFF will ignore this.
- PCM_NOACTORS — Ignore any Actors that may be blocking the move
- PCM_NOLINES — Ignore any lines that may be blocking the move
- tm: Default is null. Stores information about the check at newpos such as the sector, the floor and ceiling z coordinates, etc.
Return value
Returns true if the caller could successfully move to newpos.
Examples
![]() |
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. |
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.