How do I make an impassable line passable, or vice versa?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
mikenet2007
Posts: 340
Joined: Wed Jan 24, 2007 8:54 pm

How do I make an impassable line passable, or vice versa?

Post by mikenet2007 »

Ok, I want to set a trap where the ground raises a middle texture fence around the player to temporarily trap him. The visual mechanics of this were easy enough to figure out, a simple line triggers a "raise floor to nearest floor" special and the floor contains the middle textured fence. I will probably change the special to something I can give a delay for the fence to lower after about a minutes worth of trapping the player but finding that special should be a breeze. What I'm worried about however is the blocking properties of the line itself. We all know that the fence texture does nothing to stop the player and its the line the fence is on that actually blocks you if its set to.

So obviously I'm going to need a special of some kind that can change the blocking properties of the line to stop the player from passing through when the fence is up, yet let him pass when its down. Is there anything that can do this, or will I have to resort to using invisible actors to move with the rise sector containing the fence? I don't know if there are any actors narrow enough to fit on the rise sector because I'm going to make it as narrow as possible, so something that would change the properties of the line would be ideal, but I didn't see anything at wiki that caught my eye.
User avatar
The NUtcracker
Posts: 843
Joined: Sun Jan 14, 2007 9:12 pm
Location: South Dakota
Contact:

Post by The NUtcracker »

Just use setlineblocking(line id, blocking_on/blocking_off)
mikenet2007
Posts: 340
Joined: Wed Jan 24, 2007 8:54 pm

Post by mikenet2007 »

oh, cool I'll do that. Thanks, I knew there had to be something for that :)
User avatar
Penguinator
Posts: 625
Joined: Mon May 22, 2006 6:55 pm
Location: Hell

Post by Penguinator »

Whoa thanks, I needed that too. :oops:
User avatar
Xaeverion
Posts: 85
Joined: Tue May 15, 2007 4:18 am
Location: Singapore

Post by Xaeverion »

I think you can also Transfer Heights to make the illusion that its impassible, where its actually a invisible sector with the middle texture having a negative Y axis offset. Side effect would be that you can't shoot through the walls.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Xaeverion wrote:I think you can also Transfer Heights to make the illusion that its impassible, where its actually a invisible sector with the middle texture having a negative Y axis offset. Side effect would be that you can't shoot through the walls.
Or you can just use [wiki]SetLineBlocking[/wiki] and avoid such hacks. :roll:
User avatar
Xaeverion
Posts: 85
Joined: Tue May 15, 2007 4:18 am
Location: Singapore

Post by Xaeverion »

I happened to say that because someone ELSE already talked about SetLineBlocking.
Locked

Return to “Editing (Archive)”