Floor_Waggle

138:Floor_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).

Usage

“Waggles” the floor of the affected sectors in a sine wave. The floor 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 floor 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 Ceiling_Waggle.

Examples

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

Conversions from linedef types

The following Doom map format types can be converted as Floor_Waggle:

TypeConversionTrigger
ZDoom 338Floor_Waggle (tag, 24, 32, 0, 0)Player Cross
ZDoom 339Floor_Waggle (tag, 12, 32, 0, 0)Player Cross

See also

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.