Hello folks!
Finally got myself registered, so Im having trouble with the over used Key VS Door script, im in the process of learning the HPL editor scripting functions.
I am intrested in learning this, I've been searching this forum, been watching vids over again.. And i cant get whats wrong..
So heres my progress:
I can pick up the key, and i can use it to unlock the door specefied, HOWEVER, the key does not have a name, and the door does not have a name either.
I suspect it's my HPS file, i've double checked the Lang file dozens of times..
As you can see i've added a note in my map aswell, which shows up blank ingame.
LANG FILE TEMPLATE:
test1
Awesome note
Just a test ey
Bedroom Key
"Key to bedroomdoor"
HPS FILE TEMPLATE
////////////////////////////
// Run when entering map
void OnStart()
{
AddUseItemCallback("", "Key_1", "door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "door1", 0, false);
RemoveItem("Key_1");
}
I've double checked that the keyname and subname is correct in the editor so I got that covered.
I bet most of you see the problem already.
EXTRA HELP
http://i50.tinypic.com/28wfbq9.jpg