I've tried everything to get this stupid door to lock and then open with a key, but I just can't.
Here's my exact script:
AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
I renamed the key awesomekey_1. I followed MulleDK19's video tutorial (http://hpl2.frictionalgames.com/tutorials)
TO THE LETTER, and I still can't get the door to lock. What am I doing wrong?
I searched the forums and couldn't find a solution, even on the "Recollecting Scripts" thread the locking door post there didn't work. And yes, my door is named mansion_1.