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
Show message when interacting with a door?
srobb Offline
Junior Member

Posts: 24
Threads: 4
Joined: Sep 2012
Reputation: 0
#1
Show message when interacting with a door?

I want a message to show up on the screen when the player interacts with this door.

.hps file:

SetEntityPlayerInteractCallback("wifesroom", "showdoortext1", true);



void showdoortext1(string &in asEntity)

{
if(GetSwingDoorLocked(asEntity)== true)
{
SetMessage("Message", "doortext1", 0);
}
}

.lang file:


</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doortext1">Hmm... My wife's room... I wonder why it's locked.</Entry>
</CATEGORY>

Thanks in advance.
(This post was last modified: 09-29-2012, 03:36 PM by srobb.)
09-29-2012, 03:28 PM
Find


Messages In This Thread
Show message when interacting with a door? - by srobb - 09-29-2012, 03:28 PM



Users browsing this thread: 1 Guest(s)