Amnesia Tutorial - How to make key unlock specific door
Top Comments
All Comments (89)
-
@wijkenbabe you forgot the ; at the end of a line.
-
@MrExe300 F3 Button
-
@Rnardin123 Thank you SOOOOOOOOOOO MUCH!!!!
-
you have to do this!!!!!
////////////////////////////
// Run when entering map
void OnEnter()
{ AddUseItemCallback("", "awesomekey_1", "mansion_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{ SetSwingDoorLocked("mansion_1"
, false, true); PlaySoundAtEntity("", "unlock_door", "mansion_1", 1, false); RemoveItem("awesomekey_1"); }
-
Best tutorial ever, but i get ERR: expected ';' ...
-
I have 2 locked doors and 2 keys, when I unlock the first door, the second door also gets unlocked?! why? any1 knows?
-
fuck!HARD to unlock a dooR!~
-
awesomekey....1 LOL!
-
Cannot load script file... help please
-
how do you get that seach bar so you just can search to find it directly?
Hey Everyone, its not UsedKeyOnDoor, It's only KeyOnDoor. My own motherfucking door work now :D and sorry for my bad english, I'm finnish dude :)
Huuaarjuu 7 months ago 20
Followed the coding to the letter, tried "UsedKeyOnDoor" and "KeyOnDoor", neither work, and it says the key cannot be used in this way when used on the door. I've blown six HOURS on this, and cannot figure out what the hell to do.
LunaticBunnyofEvil 3 months ago 9