So I've just checked the maps from the official story.
They showed me this code.
SetSwingDoorLocked("Door_3", false, false);
SetSwingDoorClosed("Door_3", false, false);
SetSwingDoorDisableAutoClose("Door_3", true);
Nothing interesting below or above it.
It was triggered with a timer.
So then I just copy paste the code and modified it so it uses the names I use.
No luck.
Then I entered a debug message, saying "Message".
The message showed up, so it does trigger the actual code, but nothing happens with the door :/