Raise ceiling in Heretic format

I want the ceiling in a certain sector to be raised to the highest ceiling not by crossing a line, but by activating a switch. My map is in Heretic format.
As far as I understand, maps in Heretic format did not have a line special for raising a ceiling by activating the said line, only by crossing it. But if I understand it correctly, I could assign a line special manually, by its number, and in GZDoom it would have the desired effect. Or not?
I have tried assigning a special "262" (https://zdoom.org/wiki/Action_specials) to the switch line, but it has no effect.
So, is it possible to raise the ceiling by a switch, while keeping the map in Heretic format?
As far as I understand, maps in Heretic format did not have a line special for raising a ceiling by activating the said line, only by crossing it. But if I understand it correctly, I could assign a line special manually, by its number, and in GZDoom it would have the desired effect. Or not?
I have tried assigning a special "262" (https://zdoom.org/wiki/Action_specials) to the switch line, but it has no effect.
So, is it possible to raise the ceiling by a switch, while keeping the map in Heretic format?