Bit of help with triggers that make textures & flats change.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

Bit of help with triggers that make textures & flats change.

Post by Hidden Hands »

I have a part of my level where walking across a linedef is meant to make a previously trodden room change its appearance. The nukage changes to blood and the sector lighting changes colour. Any way to do this with built in functions or should I write up an ACS?
User avatar
Player701
 
 
Posts: 1710
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Bit of help with triggers that make textures & flats cha

Post by Player701 »

Hidden Hands wrote:Any way to do this with built in functions or should I write up an ACS?
There are built-in ACS functions that you can call from a script:
If you're using dynamic lights instead of sector colors, you could put both "old" and "new" lights inside the room and set the dormant flag for those that you don't want to be active yet. To change the lighting, Thing_Activate the "new" lights and simultaneously Thing_Deactivate the "old" ones.
Post Reply

Return to “Scripting”