NextLowestFloorAt

From ZDoom Wiki
Jump to navigation Jump to search

Sector

double, Sector, F3DFloor NextLowestFloorAt(double x, double y, double z, int flags = 0, double steph = 0)

Usage

Returns the lowest floor closest to the specified position.

Parameters

double x

X position
  • double y
Y position
  • double z
Z position
  • int flags
Possible flags:
  • FFCF_ONLYSPAWNPOS
  • FFCF_SAMESECTOR
  • FFCF_ONLY3DFLOORS - includes 3D midtexes
  • FFCF_3DRESTRICT - ignore 3D midtexes and floors whose floorz are above thing's z
  • FFCF_NOPORTALS - ignore portals (considers them impassable.)
  • FFCF_NOFLOOR
  • FFCF_NOCEILING
  • FFCF_RESTRICTEDPORTAL - current values in the iterator's return are through a restricted portal type (i.e. some features are blocked.)
  • FFCF_NODROPOFF - Caller does not need a dropoff (saves some time when checking portals)
  • double steph
(Need more info)

Return values

  • double
The absolute Z position of the lowest floor closest to the specified position.
  • Sector
Pointer to the Sector with the lowest floor closest to the specified position.
  • F3DFloor
Pointer to the 3D floor with the lowest floor closest to the specified position (can be null).