Floor_LowerToLowest isn't working

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
Noris Kneecap
Posts: 7
Joined: Thu Apr 02, 2020 1:38 pm

Floor_LowerToLowest isn't working

Post by Noris Kneecap »

Other elements of the script work, just not Floor_LowerToLowest. The line the script is applied to as an action has the ID of 10. It's not repeatable and is activated upon player activation. I've tried Door_Close as well, but that didn't work. I've also adjusted the speed, which didn't do anything. At first I thought it was because the floor was too small, but increasing its size changed nothing as well. Does anyone know what's happening?

Code: Select all

#include "zcommon.acs"

script 1 (void)
{
	HealThing(500);
	Print(s:"Blood Font used. You have been healed.");
	Floor_LowerToLowest(10, 200);
}
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

Re: Floor_LowerToLowest isn't working

Post by gwHero »

In the first argument in Floor_LowerToLowest you should specify the tag of the sector that should be lowered, not the id of the line.
> see https://zdoom.org/wiki/Floor_LowerToLowest
Noris Kneecap
Posts: 7
Joined: Thu Apr 02, 2020 1:38 pm

Re: Floor_LowerToLowest isn't working

Post by Noris Kneecap »

Thanks. I think I was stuck in the mindset of trying to use the line's ID from trying to make the line change texture.
Post Reply

Return to “Scripting”