![]() |
Entity Containing Item (key) - 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: Entity Containing Item (key) (/thread-53377.html) |
Entity Containing Item (key) - warlord1f - 12-05-2016 When in level editor, under Entity, Container can be found. These entities can hold items like oil, sanity and keys. Now the key is defined as study_key or key_study. My question is. Where can i change the discription and name of the key and also see what name it has, because i want to script it for a door and i searched but cant find what the name of the key will be. So if anyone can help me, i would be gradefull!! RE: Entity Containing Item (key) - Mudbill - 12-05-2016 If you can't add a CustomSubItemTypeName to the contained item, you may have to create a custom entity for that item. That will let you bake the lang entries into the file and not have to specify them in the level editor. To do that, open the item you want in the model editor. Start with Save As and name it something else. Go to Edit > User Defined Variables and find the SubTypeName entries. Edit them. Save. Use that entity in your level instead. Remember to include your custom entity within your custom story folder. RE: Entity Containing Item (key) - warlord1f - 12-05-2016 (12-05-2016, 01:23 AM)Mudbill Wrote: If you can't add a CustomSubItemTypeName to the contained item, you may have to create a custom entity for that item. That will let you bake the lang entries into the file and not have to specify them in the level editor. thank you for the hint. i tried but i did not succeed ![]() RE: Entity Containing Item (key) - Mudbill - 12-06-2016 What went wrong? RE: Entity Containing Item (key) - CarnivorousJelly - 12-07-2016 This looks like several questions in one! Script for Unlocking a Door with a Key Code: void Unlock_Door(string &in asItem, string &in asEntity) To change the name of the key when it's picked up You need a .lang file for this connected to your CS, in it, you should have the following: Code: <CATEGORY Name="Inventory"> RE: Entity Containing Item (key) - Mudbill - 12-07-2016 (12-07-2016, 05:49 AM)CarnivorousJelly Wrote: Just fixing up your parameters so they match the callback syntax. (12-07-2016, 05:49 AM)CarnivorousJelly Wrote: Oh, and this ^ @OP: Are you able to acquire the item at all? RE: Entity Containing Item (key) - CarnivorousJelly - 12-07-2016 Omg I should've proof-read before posting. Thanks Mudbill |