08-08-2013, 07:39 PM
Hellos!
I've got a problem with the script which adding a message to a locked door.
I changed name of a door to: door3
I wrote in the PlayerInteractCallBack: DoorLockedPlayer
Then i typed in my .lang file:
<CATEGORY Name=“Messages”>
<Entry Name =“msgname”>It is you, the grandson? Please, go get a sack of potatoes for dinner. It should be outside, first on the right, next to apples. The key to the main door in the dining room.</Entry>
</CATEGORY>
And in my .hps:
void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked("door3"))
{
SetMessage("Messages", "msgname", 0);
}
}
I've got a script for opening door with a key, maybe that's a problem, but idk how can I edit it.
help please!
I've got a problem with the script which adding a message to a locked door.
I changed name of a door to: door3
I wrote in the PlayerInteractCallBack: DoorLockedPlayer
Then i typed in my .lang file:
<CATEGORY Name=“Messages”>
<Entry Name =“msgname”>It is you, the grandson? Please, go get a sack of potatoes for dinner. It should be outside, first on the right, next to apples. The key to the main door in the dining room.</Entry>
</CATEGORY>
And in my .hps:
void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked("door3"))
{
SetMessage("Messages", "msgname", 0);
}
}
I've got a script for opening door with a key, maybe that's a problem, but idk how can I edit it.
help please!