Discussion > Editing
Set Ceiling Height issues
Defilant:
I've got a linedef with a macro which changes the ceiling height of a sector by using the Scripted Ceilings->Set Ceiling Height macro. I've got a Set Level Integer macro before calling on a separate sector and, I'm assuming, its ceiling height. Via a nearby switch I am able to open the sector like a door. The switch works, but the door rises for a few seconds as if the ceiling height has been put well below the floor level. This happens no matter what I set my dummy sector's heights and floors to.
Is this how this particular macro is supposed to work? Is there a way to more directly "close" the sector?
Here's the actual setup: Player walks over Linedef A, triggering Macro B. Macro B calls upon SetLevelInteger(tagA), followed by SetCeilingHeight(tagB) to close the door shut in front of the player. Macro B opens some doors with baddies. A newly-opened switch allows the player to open the shut sector, but the door rises some 128-256 units before fully opening.
sector666:
I see. You're trying to move the door sector's ceiling to the height of the tagA sector's ceiling. That isn't how it works :P
In fact the dummy sector isn't even needed.
Set Ceiling Height literally sets the ceiling height to the number used for Level Integer. No separate sector with a tag number is needed or used (and that's why your dummy sector doesn't affect anything).
What's the floor height for the door sector? That's the number you want to use for Level Integer. :)
But if the player can see the door when it closes, you'd be better off using Custom Ceiling Fast. That would still close the sector quickly. And it would look more natural than the door doing an instant close (which is what Set Ceiling Height would do).
To use Custom Ceiling Fast you put how much you want the ceiling to move by. And to make a ceiling go down you use negative values.
So look at the door sector's Height in DB64 by mousing over it (I'm assuming the door is fully open to start with), and put the negative of that in Level Integer. Then use Custom Ceiling Fast.
Defilant:
Thank you! This worked! It's hard to tell what an appropriate use of Set Level Integer is... would there be a list or reference page somewhere that has the uses of set level integer listed?
Re-Edit: Actually, the tech bible DIDN'T have what I was looking for: How SetLevelInteger affects each action!
sector666:
Ideally the descriptions in Doom Builder itself could give a good sense of how to use Level Integer with them.
I've made a bunch of the descriptions in my config more useful so I'll just attach it. It goes into:
(wherever you have DB64 installed)\Configurations\Includes\Doom_linedefs.cfg
Back up your original Doom_linedefs.cfg before using it, in case you ever want to have the original descriptions again. I think you'll find the descriptions in this one much more useful though.
Kaiser:
sector666: mind if I include your config with the next Builder64 release?
Navigation
[0] Message Index
[#] Next page
Go to full version