Author Topic: Basic (door)Key mechanism?  (Read 4568 times)

KptnKook

  • Posts: 45
  • Immersive or DIE!!!!!
    • View Profile
Basic (door)Key mechanism?
« on: August 29, 2013, 01:30:43 AM »
I realized, that i don't even know how to open a door, after taking the bonus_key. how do i trigger, toggle or set this up?
i don't know how to detect that a key was picked up.  ???

thanks

Linaru

  • Moderator
  • Posts: 113
  • That Collectable coin is mine!
    • View Profile
Re: Basic (door)Key mechanism?
« Reply #1 on: August 29, 2013, 10:02:21 AM »
doors are automatically opened by the corresponding key when you walk into them its hard coded.
it is possible to make custom keys using this string:
Code: [Select]
<entry name="type"><int>4</int></entry>
however there is no way to display the new key on the hud so when i do this i apply and on item destroyed trigger that activates some text.
-----------------------------------------------------------
Stabaddey Stabaddey Zap
-----------------------------------------------------------

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Basic (door)Key mechanism?
« Reply #2 on: August 29, 2013, 01:31:07 PM »
doors are automatically opened by the corresponding key when you walk into them its hard coded.
it is possible to make custom keys using this string:
Code: [Select]
<entry name="type"><int>4</int></entry>
however there is no way to display the new key on the hud so when i do this i apply and on item destroyed trigger that activates some text.
You can actually show them in the hud if you are willing to modify it, take a look at line 52-54 in the menus/gui/hud.xml.

KptnKook

  • Posts: 45
  • Immersive or DIE!!!!!
    • View Profile
Re: Basic (door)Key mechanism?
« Reply #3 on: August 29, 2013, 03:44:52 PM »
great.. i am so willing to do this!   8)

i am also willing to add a new "rope" item, which can be used on some occasions. it should be seen in the hud, also.