[SCRIPT] Open Door On Key Pickup - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Open Door On Key Pickup (/thread-16864.html) |
Open Door On Key Pickup - Atilla280 - 07-10-2012 I was wondering if there was a way that I could open a door on key pickup. If so please help me. RE: Open Door On Key Pickup - Steve - 07-10-2012 void OnStart() { SetEntityPlayerInteractCallback("NAME_OF_KEY", "OnKeyPickUp", true); } void OnKeyPickUp(string &in asEntity) { SetSwingDoorLocked("NAME_OF_DOOR", false, true); } This should work if you have any problem ask me. RE: Open Door On Key Pickup - zaggnut - 07-10-2012 http://wiki.frictionalgames.com/hpl2/tutorials/script/scripting_by_xtron_-_item_that_unlocks_a_door banana? RE: Open Door On Key Pickup - Atilla280 - 07-10-2012 I need the door to open, not unlock. Is there anyway I could go about doing that? RE: Open Door On Key Pickup - Your Computer - 07-10-2012 http://www.youtube.com/watch?v=VSZ_uWz-PeM&list=PLD326789BC99530C8&index=16 RE: Open Door On Key Pickup - Atilla280 - 07-10-2012 Thanks computer. You've helped me so much everything I know with Amnesia custom stories is based off of your tuts. |