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
Key Name and Description not working
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#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


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



Users browsing this thread: 1 Guest(s)