Can I put more than one action on a line?

Recommended Posts

SetLineTexture doesn't identify linedefs via their tags, it does so via their line IDs (which are neither tags nor linedef indexes). In UDMF, you set line IDs directly. In Hexen format, you need to use Line_SetIdentification on the line itself, as in, actually put it onto the line as the line's own action (instead of the switch action) just to give it a line ID, and then (if you want the linedef to actually be a switch) assign the switch action to the line via SetLineSpecial, which also uses line IDs to identify lines.

Can this be used to make a line be both translucent and scrolling? Last year, I tried and failed to make a line like that. I finally gave up and made a translucent line in front of a scrolling line, which looks pretty good, but it wasn't what I originally wanted to do.

While we're at it, it would be awesome if there were a way to make both sides of a line scroll (not necessarily the same line as the one in my previous question).

I tried both of these things in Doom-in-Hexen, but I am planning to upgrade to UDMF, so an answer for how to do it in UDMF would be very much appreciated.

Share this post

Link to post

In UDMF you can set translucency and line ID as a direct property, so they won't take up the special.

If you want to do more complex scrolling, you can start a script with multiple Scroll_Wall specials, this allows per-tier and per-side scrolling, but due to the setup involved cannot be set on the map directly.

Share this post

Link to post

Mods these days use named scripts and they have to account for maps with scripts. The low numbers should be safe, unless some really stupid modder comes along, but that mod would create problems not just with your map then.