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
Unlock door when you read Note
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Unlock door when you read Note

void OnStart()
{
     SetEntityPlayerInteractCallback("Note01", "Func01", true);
}
void Func01(string &in asEntity)
{
     //AddUseItemCallback for unlocking it with item or whatever
     //If above comment is not what you're looking for, put SetSwingDoorLocked("Trail1, false, true); and some sound effect...
}

GiveSanityBoost(); = Normal boost.
GiveSanityBoostSmall(); = Small boost.

I hope this helps. Smile

(This post was last modified: 08-02-2011, 09:21 PM by Kyle.)
08-02-2011, 09:20 PM
Find


Messages In This Thread
Unlock door when you read Note - by GreyFox - 08-02-2011, 09:10 PM
RE: Unlock door when you read Note - by Kyle - 08-02-2011, 09:20 PM
RE: Unlock door when you read Note - by GreyFox - 08-02-2011, 09:30 PM
RE: Unlock door when you read Note - by Kyle - 08-02-2011, 09:51 PM
RE: Unlock door when you read Note - by GreyFox - 08-02-2011, 10:11 PM



Users browsing this thread: 1 Guest(s)