How do you set up a floor waggle? (Ultimate Doom Builder)

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
NicNamSam
Posts: 7
Joined: Thu Aug 18, 2022 6:18 pm
Preferred Pronouns: He/Him

How do you set up a floor waggle? (Ultimate Doom Builder)

Post by NicNamSam »

I've set a floor waggle to be triggered by walking over a sector just like a floor raise, etc, but it does nothing. There's a video guide out there, but that uses the script. Is the script necessary? Wouldn't that make the presence of the floor waggle Action in the UI pointless? I've tried many combinations of single tags over multiple sectors vs multiple tags and nothing works.
User avatar
Kappes Buur
 
 
Posts: 4171
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: How do you set up a floor waggle? (Ultimate Doom Builder)

Post by Kappes Buur »

No, a script is not necessary if you want to waggle just a single sector, use for example

Code: Select all

Floor_Waggle ( 1, 400, 25, 0, 0);
attached to a linedef with the walk over trigger to affect the sector with tag 1.


Because seconds is set to 0 the sector keeps moving up and down.


Far more dramatic would be to waggle many sectors with a script such as

Code: Select all

#include "zcommon.acs"

SCRIPT 1 OPEN

{
for(int sid = 1; sid < 91; sid++)
   {
     Floor_Waggle ( sid, 400, 25, 0, 0);
	    delay (7);
   }
 }
to affect sectors 1 to 90

NicNamSam
Posts: 7
Joined: Thu Aug 18, 2022 6:18 pm
Preferred Pronouns: He/Him

Re: How do you set up a floor waggle? (Ultimate Doom Builder)

Post by NicNamSam »

Okay, so make a wave with multiple sectors, I definitely need a script? I thought giving all the sectors the same tag but giving them different phase offsets is how it would work.

But even so, I cannot even get one sector to work.

https://i.imgur.com/1E6ge7W.png
User avatar
Kappes Buur
 
 
Posts: 4171
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: How do you set up a floor waggle? (Ultimate Doom Builder)

Post by Kappes Buur »

NicNamSam wrote: Thu Aug 18, 2022 11:17 pm Okay, so make a wave with multiple sectors, I definitely need a script? I thought giving all the sectors the same tag but giving them different phase offsets is how it would work.
Phase Offsets are not applied to the sectors themselves, so you would have to give each sector a unique tid and a specific line special with the Phase Offset. Thusly, a script would make the job easier.
NicNamSam wrote: Thu Aug 18, 2022 11:17 pmBut even so, I cannot even get one sector to work.
The values are too small to be noticable. See my example for a single sector
Attachments
sine_example.wad
(2.82 KiB) Downloaded 46 times
Post Reply

Return to “Mapping”