thesecondcomingdoom Posted February 1, 2016 Is there a function to change the brightness of all sectors to 0?, I'm learning acs. a ZDoom wiki link would be useful. 0 Quote Share this post Link to post
Fonze Posted February 1, 2016 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. 0 Quote Share this post Link to post
scifista42 Posted February 1, 2016 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. 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.