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 Normal Door 'Locked Text
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Normal Door 'Locked Text

in the interaction tab (in the editor, when you click the door) write "DoorLocked".

Then in your script write this function:

void DoorLocked(string &in asEntity)
{
if(GetSwingDoorLocked(asEntity)
{
SetMessages("MessageCategory", "MessageEntry", 0);
}
}

Change MessageCategory and MessageEntry to whatever is in your .lang file under messages.

You can now write "DoorLocked" in every interaction tab (In swingdoors), to make it set the message if it's locked.

Trying is the first step to success.
02-13-2013, 09:24 PM
Find


Messages In This Thread
RE: Normal Door 'Locked Text - by FlawlessHappiness - 02-13-2013, 09:24 PM



Users browsing this thread: 2 Guest(s)