I'm having a problem on one of my maps and I hope you can help me.
On my map I have a 3D bridge. This bridge has absolutely no textures and is self referencing, since I want it to be completely invisible.
So, when I give the according Linedef of the controlling Sector Action 160 and Type 1 (solid/walkable) everything works as designed. I can walk on the bridge and cross the pit below.
Let's come to the problem I'm facing: When I enter the level I want the bridge to be non solid but a switch should turn it into a solid floor. Still invisible, but walkable.
I've tried to create a small script with the following content and assigned the script's execution to a switch.
Code: Select all
script 1(void) {
PrintBold(s:"Should be walkable now");
Sector_Set3dFloor(1, 1);
}
But when I now hit the switch literally nothing happens to the bridge. When I try to step on it I'm still falling into the pit.
Also the script editor tells me the function "Sector_Set3dFloor" is not defined. Am I missing an import? Actually I only include "zcommon.acs".
Does anybody have a clue what I am missing or how I can achieve my goal?
For clarification purpose, I've added a small dummy map to the posting.
Thanks in advance.