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
.Lang File Help Need help displaying door is locked on non-exit doors.
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#15
RE: Need help displaying door is locked on non-exit doors.

I noticed an error in your LANG file.

PHP Code: (Select All)
<Entry Name="ItemDesc_roomkey">"Room Key"</Entry>
<
Entry Name="ItemName_roomkey">"Room Key"</Entry


You have written Room Key as "Room Key". Remove the "s and it should probably work.

Also, you named it CATAGORY and not CATEGORY at the bottom.

If you want to do SilentStriker's method with local vars, here's one example.


Example:

On your UseItemCallback, add:

PHP Code: (Select All)
SetLocalVarInt("doorUnlocked"1); 

And on your InteractCallback, do something like:

PHP Code: (Select All)
void CALLBACK(string &in asEntity)
{
    if(
GetLocalVarInt("doorUnlocked") == 0//As long as "doorUnlocked" is 0, the message will be displayed, so when you use the key on the door, the message should disappear.
    
{
SetMessage("Messages""DoorLocked"3.0f);
    }


Creator of The Dark Treasure.
(This post was last modified: 02-13-2012, 07:52 AM by Linus Ågren.)
02-13-2012, 07:45 AM
Website Find


Messages In This Thread
RE: Need help displaying door is locked on non-exit doors. - by Linus Ågren - 02-13-2012, 07:45 AM



Users browsing this thread: 1 Guest(s)