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
Adding messages to a locked door?
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#1
Adding messages to a locked door?

Well I followed the instructions for adding messages to a locked door and it's just not working.


What I did:


Added: <CATEGORY Name=“Messages”>


<Entry Name =“msgname1”>The door seems to be locked. Maybe I should look around a little bit.</Entry>


</CATEGORY>

To my .lang file


Also added:


void DoorLockedPlayer1(string &in entity)


{
if(GetSwingDoorLocked("castle_1") == true)
{
SetMessage("Messages", "msgname1", 0);
}
}



To my .hps file
I clicked on my door in hpl2 and went to the Entity's tab
(The door was already locked) and typed in
DoorLockedPlayer1 for the player interact call back.


I am thinking it is a scripting error.
Please help me?

Special Custom Story for 2 special people!

[Image: LWFcAl]


06-25-2012, 06:24 AM
Find


Messages In This Thread
Adding messages to a locked door? - by Jagsrs28 - 06-25-2012, 06:24 AM



Users browsing this thread: 1 Guest(s)