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
.Lang File Help message if door is locked
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: message if door is locked

It's not that hard, here it is:

PHP Code: (Select All)
void OnStart()
{
SetEntityPlayerInteractCallback("Door_name""Func1"false);
}

void Func1(string &in asEntity)
{
if(
GetSwingDoorLocked("Door_name")==true)
{
SetMessage("Category_name""Entry_name"1);
}
else
{
//do whatever you want if it's unlocked
}

05-26-2013, 12:34 PM
Find


Messages In This Thread
message if door is locked - by Darkboot - 05-26-2013, 12:27 PM
RE: message if door is locked - by OriginalUsername - 05-26-2013, 12:34 PM
RE: message if door is locked - by Romulator - 05-26-2013, 12:56 PM



Users browsing this thread: 1 Guest(s)