06-25-2012, 06:24 AM
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?
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?