Bottle/Breakable 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: Bottle/Breakable item key (/thread-11732.html) |
Bottle/Breakable item key - hoppem - 12-07-2011 As you may know there are items where on break another item pops out of it but for a key would it's name be the item it came out of? RE: Bottle/Breakable item key - triadtimes - 12-07-2011 What it looks like from the original Amnesia scripting is that whatever the jar's name is ("jar") that the object inside of it will be the jar's name plus _item ("jar_item"). Try that out. RE: Bottle/Breakable item key - hoppem - 12-07-2011 thanks ill try it out RE: Bottle/Breakable item key - GreyFox - 12-07-2011 Triadtimes is correct, It's "NAME_ITEM" -Grey Fox RE: Bottle/Breakable item key - hoppem - 12-07-2011 it didnt work am i doin something wrong im sing the lithium bromide bottle from justine and have study key on break i also renamed the bottle to "bromide" heres my script for it { AddUseItemCallback("", "bromide_key_study", "DOOR", "FUNCTION", true); } void FUNCTION(string &in asItem, string &in asEntity) { SetSwingDoorLocked("DOOR", false, true); PlaySoundAtEntity("", "unlock_door", "DOOR", 0, false); RemoveItem("bromide_key_study"); } RE: Bottle/Breakable item key - triadtimes - 12-07-2011 (12-07-2011, 01:34 AM)hoppem Wrote: it didnt work am i doin something wrong im sing the lithium bromide bottle from justine and have study key on break i also renamed the bottle to "bromide"I think I know what's wrong, what did you call the item? By the looks of it "bromide". Sorry, but, when I said put "_item" it didn't mean put "_" then the item in the container I meant put "_item" What I think it should look like (if the bottle's name stays "bromide") is: Code: OnStart(){ Hope this works. RE: Bottle/Breakable item key - hoppem - 12-07-2011 IT WORKS yes very many thanks from hoppem!!! |