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
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#1
message if door is locked

Yeah.. where can i find a tutorial on this? :S Can't find
05-26-2013, 12:27 PM
Find
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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: message if door is locked

Or you can look at this Smile
http://wiki.frictionalgames.com/hpl2/tut...cked_doors

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-26-2013, 12:56 PM
Find




Users browsing this thread: 1 Guest(s)