From ZDoom Wiki
Jump to navigation Jump to search

38:Ceiling_Waggle (tag, amp, freq, offset, time)

  • tag: Tag of affected sector.
  • amp: Amplitude of the waggle (in 1/8 of a unit).
  • freq: Speed of the waggle.
  • offset: Phase offset of the waggle (0 through 63).
  • time: How many seconds the waggle lasts (0 means it will waggle forever).


“Waggles” the ceiling of the affected sectors in a sine wave. The ceiling starts moving upwards and downwards smoothly until it is in phase with the specified parameters. After the time the “waggle” dies down smoothly and the ceiling returns to its original height.

Effective when used as part of a group, each with slightly different offsets. It can be used in conjuction with Floor_Waggle.


script 1 OPEN
{ // at start...
  // make ceiling of sector(s) tagged 333 slowly and slightly waggling
  Ceiling_Waggle (333, 8, 16, 0, 0);
  // make ceiling of sector(s) tagged 334 waggling vigorously
  Ceiling_Waggle (334, 32, 256, 0, 0);

See also