(02-13-2012, 07:23 PM)Symbi0sis Wrote: I have tried without numbers to, but it doesn't work either.
The .HPS file is in the .zip file as well, just unzip it.
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "note_test01", "door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door1", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("keyname");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
also, your .lang isn't supposed to be in your maps folder. Put it where your custom_story_settings file is at. Do you even have a key? You didn't mention the key name in any of the scripts??