Frictional Games Forum (read-only)
[SCRIPT] Messing with keys inside containers - 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] Messing with keys inside containers (/thread-13697.html)



Messing with keys inside containers - W10607059 - 03-02-2012

Hey guys, I have a vase in which I set so it contains a key, but I don't know how to find out or change the name of the key that appears when the vase is broken. Theres gotta be a way, cause what good is a key if you don't know the name of it and can't set up a script to have it open a door? Does anyone know how to mess with the key's name or anything like that?


RE: Messing with keys inside containers - Strembitsky - 03-02-2012

Click on the key for the information. Use the item name, and that's what you use for the script.


RE: Messing with keys inside containers - W10607059 - 03-02-2012

(03-02-2012, 02:21 AM)Strembitsky Wrote: Click on the key for the information. Use the item name, and that's what you use for the script.


Well thats the problem, in the level editor there is no physically key that you can click on because the key spawns after the vase is broken.


RE: Messing with keys inside containers - Your Computer - 03-02-2012

I haven't tried this yet, but try suffixing the entity name with "_item" when trying to reference the key.


RE: Messing with keys inside containers - palistov - 03-02-2012

If YC's method doesn't work, you can turn on 'Inspection Mode' via the debug menu. Then just look at the key which comes out of the vase once broken. The internal name should appear in the top left.


RE: Messing with keys inside containers - W10607059 - 03-02-2012

Turns out it was "vase_item", so YC was right! but thanks palistov for the reply, I now know there an inspection mode. Do either of you know how I would rename this key?