Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Key Name and Description not working
Author Message
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #2
RE: Key Name and Description not working
Try this lang file If this lang doenst work,check are the customsubitemtype the same as in here key1 Its in the level editor when you click the key and go to entity tab.
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Just a brief description!</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1_Name">Master Key</Entry>
<Entry Name="ItemDesc_key1_Text">A key that will open all the doors in the mansion</Entry>

</CATEGORY>

< /LANGUAGE>

And for the hps
void OnStart ()
{

/////<SNIP>

AddUseItemCallback("", "key1", "lockeddoor1", "func_unlockdoor", false);
AddUseItemCallback("", "key1", "lockeddoor2", "func_unlockdoor", false);

/////<SNIP>

}

/////<SNIP>

void func_unlockdoor (string &in item, string &in door)
{
SetSwingDoorLocked("door", false, true);
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
}

/////<SNIP>

(This post was last modified: 03-09-2012 01:35 PM by Datguy5.)
03-09-2012 01:32 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Key Name and Description not working - Datguy5 - 03-09-2012 01:32 PM



User(s) browsing this thread: 1 Guest(s)