Hello,
Im new in doing Custom-Stories and could need some help, because i have a problem with my key:
in my leveleditor the key has under the right subject the name of the door.
in the hps:
void OnStart()
{
AddUseItemCallback("", "key_study_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, false);
PlaySoundAtEntity("", "unlock_key_study_1.snt", "mansion_1", 0, false);
RemoveItem("key_study_1");
AddDebugMessage("KeyOnDoor", false);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
but it doesn´t work and im very sorry, if it already exists a thread about it!
im happy about each comment