Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
thesecondcomingdoom

How to make all the sectors dark?

Recommended Posts

It's been over a year since I've done any acs scripting and even then most of it was of the hack-and-slash variety (in that I did research and made it work, but didn't necessarily understand everything I was doing).

Still, a basic Google search has turned up this, which may prove useful for you.

http://zdoom.org/wiki/Action_specials#Lighting

and

http://zdoom.org/wiki/Light_Fade

I would imagine that youd need one of these for every tagged sector in your map. Idk if having a tag of 0 will work with sectors also tagged 0, but even if it doesn't just tag all sectors previously tagged 0->[new tag] and add another light fade line in your script with that new tag and it should work.

Prolly better ways to do it, but that's a start.

Share this post


Link to post

Use Light_ChangeToValue if the light change is supposed to be immediate. Use Light_Fade if the light change is supposed to be gradual. In either case, you must give a tag to every sector you want to be affected, and use this action with said tag to affect them. Mapping in UDMF formats makes this easy, since every sector can have multiple tags, so that you can just block-select all sectors in your map and give them a certain tag without breaking their other tags they might possibly have. Note that when you change all their brightnesses to 0, they will "forget" the previous brightnesses they had, so that you won't be able to revert/retrieve their previous brightness value anymore after you darken them.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×