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 Open Door On Key Pickup
Atilla280 Offline
Junior Member

Posts: 24
Threads: 6
Joined: Jul 2012
Reputation: 1
#1
Open Door On Key Pickup

I was wondering if there was a way that I could open a door on key pickup. If so please help me.
07-10-2012, 12:55 AM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#2
RE: Open Door On Key Pickup

void OnStart()
{
SetEntityPlayerInteractCallback("NAME_OF_KEY", "OnKeyPickUp", true);
}
void OnKeyPickUp(string &in asEntity)
{
SetSwingDoorLocked("NAME_OF_DOOR", false, true);
}
This should work if you have any problem ask me.

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
07-10-2012, 09:12 AM
Find
zaggnut Offline
Member

Posts: 62
Threads: 2
Joined: Jul 2012
Reputation: 1
#3
RE: Open Door On Key Pickup

http://wiki.frictionalgames.com/hpl2/tut...cks_a_door

banana?
07-10-2012, 09:33 AM
Find
Atilla280 Offline
Junior Member

Posts: 24
Threads: 6
Joined: Jul 2012
Reputation: 1
#4
RE: Open Door On Key Pickup

I need the door to open, not unlock. Is there anyway I could go about doing that?
07-10-2012, 02:59 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Open Door On Key Pickup

http://www.youtube.com/watch?v=VSZ_uWz-P...8&index=16

Tutorials: From Noob to Pro
07-10-2012, 04:35 PM
Website Find
Atilla280 Offline
Junior Member

Posts: 24
Threads: 6
Joined: Jul 2012
Reputation: 1
#6
RE: Open Door On Key Pickup

Thanks computer. You've helped me so much everything I know with Amnesia custom stories is based off of your tuts.
07-10-2012, 07:30 PM
Find




Users browsing this thread: 1 Guest(s)