The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Message on locked doors not working!=SOLVED!
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#1
Message on locked doors not working!=SOLVED!

Hello Everyone

I've just started using HPL2 editor for amnesia and have started to create my own custom story. The only problem I have come up to with my coding is that when I click on my locked door a message should appear saying "This door is locked". I have gone through many different youtube videos and forums I cannot seem to find out why it is not working, if someone would be as kind as to read my code and tell me why I would be very grateful as i've spent over 2 hours trying to just make text appear on a door lol Dodgy

anyway here is my .hps file

void OnStart()
{
SetEntityPlayerInteractCallback("Locked_Door", "DoorLockedPlayer", false);
}

void DoorLockedPlayer(string &in asEntity)
{
SetMessage("Messages", "msgname", 10);
}



void OnEnter()
{
}

void OnLeave()
{
}

and here is my .lang file

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
hello how are you?
</Entry>

</CATEGORY>

<CATEGORY Name=“Messages”>

<Entry Name=“msgname”>The door is locked</Entry>

</CATEGORY>

</LANGUAGE>
(This post was last modified: 04-13-2014, 09:00 PM by Wafflychicken.)
04-11-2014, 09:19 PM
Find


Messages In This Thread
Message on locked doors not working!=SOLVED! - by Wafflychicken - 04-11-2014, 09:19 PM



Users browsing this thread: 1 Guest(s)