Sector_SetCeilingPanning

From ZDoom Wiki
Jump to navigation Jump to search

186:Sector_SetCeilingPanning (tag, u-int, u-frac, v-int, v-frac)


  • tag: Tag of affected sector
  • u-int: Integral part of the horizontal offset
  • u-frac: Fractional part of the horizontal offset
  • v-int: Integral part of the vertical offset
  • v-frac: Fractional part of the vertical offset

Pans the ceiling texture in the specified sector horizontally (x) and/or vertically (y). The formula for selecting a panning value for the two parts is the same as for Sector_SetGravity. Example: Horizontal panning is calculated as u-int + (u-frac * 0.01). For most purposes, you can probably leave the ?-frac parts as 0 and just set the ?-int parts.

UDMF

If you are using UDMF and do not intend to modify the ceiling's panning later on, you can directly set this in fixed point under the sector's custom tab.