Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Locked Door Messages
Author Message
MrCookieh Offline
Member

Posts: 157
Joined: Jul 2011
Reputation: 0
Post: #1
Locked Door Messages
Hello guys!

What script do I need (or is there another way around?) to show a
message like "Locked." at a swingdoor, when I interact with it?

I know there's a script for Leveldoors, but it doesn't work for swing doors.

While I was searching in the main .lang file of amnesia, I've found those
messages, but they were in a weird category, and I couldn't see how they
were used within the script.
(This post was last modified: 07-07-2011 06:58 PM by MrCookieh.)
07-07-2011 06:18 PM
Find all posts by this user Quote this message in a reply
H. Filipe Offline
Junior Member

Posts: 22
Joined: Jun 2011
Reputation: 0
Post: #2
RE: Locked Door Messages
Try this:

In mapname.hps

void OnStart()
{
SetEntityPlayerInteractCallback("door", "Interactdoor", false);
}

void Interactdoor(string &in asEntity)
{
    SetMessage("Message", "doorlocked", 0);
}

In extra_english.lang
<CATEGORY Name="Message">
         <Entry Name="doorlocked">Locked</Entry>
    </CATEGORY>

E-mail: postal2DeusEx@hotmail.com
Xbox/Live Account: HUGO BOLT 0GTA0

Working on a Custom Story :)
(This post was last modified: 07-07-2011 06:42 PM by H. Filipe.)
07-07-2011 06:40 PM
Find all posts by this user Quote this message in a reply
MrCookieh Offline
Member

Posts: 157
Joined: Jul 2011
Reputation: 0
Post: #3
RE: Locked Door Messages
ah, so SetMessage was the one I was looking for!

it works now, thanks! Smile
07-07-2011 06:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)