Sector_SetGravity

Sets the amount of gravity in a sector. The actual formula used is sv_gravity * (ipart + fpart * 0.01). sv_gravity is a cvar that defines “normal” gravity. So Sector_SetGravity(1, 0, 50) would set a sector to half normal gravity, Sector_SetGravity(1, 2, 0) would be double normal gravity, Sector_SetGravity(1, 1, 0) would be normal gravity, etc.

216:Sector_SetGravity (tag, ipart, fpart)

  • tag: Tag of affected sector
  • ipart: Integral part of the gravity multiplier
  • fpart: Fractional part of the gravity multiplier
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.