Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Messing with keys inside containers
W10607059 Offline
Junior Member

Posts: 11
Threads: 3
Joined: Feb 2012
Reputation: 0
#1
Messing with keys inside containers

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?
03-02-2012, 02:14 AM
Find
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#2
RE: Messing with keys inside containers

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

The Nightmares v1.0 - Dreadful Fires WIP
03-02-2012, 02:21 AM
Find
W10607059 Offline
Junior Member

Posts: 11
Threads: 3
Joined: Feb 2012
Reputation: 0
#3
RE: Messing with keys inside containers

(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.
03-02-2012, 02:30 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Messing with keys inside containers

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

Tutorials: From Noob to Pro
03-02-2012, 04:57 AM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#5
RE: Messing with keys inside containers

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.

(This post was last modified: 03-02-2012, 05:02 AM by palistov.)
03-02-2012, 05:02 AM
Find
W10607059 Offline
Junior Member

Posts: 11
Threads: 3
Joined: Feb 2012
Reputation: 0
#6
RE: Messing with keys inside containers

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?
03-02-2012, 09:01 PM
Find




Users browsing this thread: 1 Guest(s)