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
Door opens when take item
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#1
Door opens when take item

How to make that if door is locked, but you take example: note then door unlock's?

Thanks for help people!
(hopelly you understand)
btw: is anyone used custom map name Hope?

Amnesia map:
Hope - Work in Progress.
06-10-2011, 03:44 AM
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#2
RE: Door opens when take item

void OnStart()
{
SetEntityPlayerInteractCallback("Entity name", "MyFunc", true);
}

void MyFunc(string &in Entity)
{
//Put here what you want to happen when interacting with the item ;P
}

Got a nice sofa
Please come and have a seat for a while

06-10-2011, 11:20 AM
Find




Users browsing this thread: 1 Guest(s)