![]() |
Closet script need help !!! :) - 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: Closet script need help !!! :) (/thread-17647.html) Pages:
1
2
|
RE: Closet script need help !!! :) - TheIcyPickle - 08-11-2012 KeyOnDoor should work. For example, AddUseItemCallback("", "keyname", "closetname", "KeyOnDoor", true); { void KeyOnDoor(string &in asItem, string &in asEntity) SetSwingDoorLocked("closetname", false, true); PlaySoundAtEntity("", "unlock_door", "closetname", 0, false); RemoveItem("keyname"); } I have done this before, KeyOnDoor works, you can name it what you like, but what I have there is what should work. Hope this explains it better! RE: Closet script need help !!! :) - Ongka - 08-11-2012 It should rather be: Code: void OnStart() RE: Closet script need help !!! :) - TheIcyPickle - 08-11-2012 right, I seem to have a few typos. thanks. RE: Closet script need help !!! :) - Pandachoko - 08-11-2012 Now my lang file(with description and name) to the key won't work, or the other works fine ![]() RE: Closet script need help !!! :) - Theforgot3n1 - 08-11-2012 (08-11-2012, 03:37 PM)Pandachoko Wrote: Now my lang file(with description and name) to the key won't work, or the other works fineI could be wrong, but I think you have to have it this way: <CATEGORY Name="Inventory"> <Entry Name="ItemName_KeyCloset">Double spare key</Entry> <Entry Name="ItemDesc_KeyCloset">This is a hidden key for a closet in the basement </Entry> </CATEGORY> ("ItemName_KeyCloset" before "ItemDesc_KeyCloset") Tell me if it worked. RE: Closet script need help !!! :) - Pandachoko - 08-11-2012 It worked ![]() |