How to deactivate sector action using acs

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

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.
User avatar
MuhsinsCat
Posts: 2
Joined: Thu Feb 13, 2025 9:36 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: Intel with Vulkan/Metal Support

How to deactivate sector action using acs

Post by MuhsinsCat »

hello, i an trying to figure out how to deactivate those sector action things using acs, things like "actor hit floor", ive tried using thing_deactivate but it wont work, the only thing that works is thing_remove but that would removeall the attributes tied to the sector action.

in my level i want the player to collect all the lightbulbs, once all are collected the main floor would lower by alot and once the player falls in and hits the floor, they will be teleported to another place

Heres the code, the tag "14" is the one i want to disable

int lights = 0;

script 10 (void) {
lights = lights + 1;

if (lights > 2){

Thing_Activate(10);
Thing_Activate(14);
Floor_LowerByValue(23,1000,1400);

}

}

script 11 OPEN {
Thing_Deactivate(10);
Thing_Deactivate(14);
}

Return to “Mapping”