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
Locked Door Messages
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#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
H. Filipe Offline
Junior Member

Posts: 22
Threads: 6
Joined: Jun 2011
Reputation: 0
#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
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)