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
Silly question
Pandachoko Offline
Junior Member

Posts: 47
Threads: 14
Joined: Aug 2012
Reputation: 0
#1
Silly question

I am working on my custom story, and I got a key, and this key should open another door, in another level.

If this even possible, and if how do I do so? Please help! Smile
08-13-2012, 07:01 PM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Silly question

The same way you would open it in the same level. The name of the key stays in your inventory, so you could have a key found in map A that would open a door in map Z.

08-13-2012, 07:48 PM
Find
Fearlessagent Offline
Junior Member

Posts: 12
Threads: 2
Joined: Jul 2012
Reputation: 1
#3
RE: Silly question

Just make sure you place the callback in the .hps file associated with the map where the door you want to unlock is. If you are not sure how to unlock doors in the first place, check this page and look for the AddUseItemCallback function to be placed in the OnStart() portion of your code. Then just write a function which will unlock the door, remove the key from inventory, and play an unlock sound if you choose when it is called.
08-13-2012, 08:15 PM
Find




Users browsing this thread: 1 Guest(s)