Key doens´t work... - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Key doens´t work... (/thread-13341.html) Pages:
1
2
|
Key doens´t work... - thephoenix1860 - 02-14-2012 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 RE: Key doens´t work... - flamez3 - 02-14-2012 I'm sorry, but what isn't working? RE: Key doens´t work... - onv - 02-14-2012 PlaySoundAtEntity("", "unlock_key_study_1.snt", "mansion_1", 0, false); should be : PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false); RE: Key doens´t work... - thephoenix1860 - 02-14-2012 errh...it doens´t work, onv i have it of a tutorial on youtube, and by the player and some viewers it works...I have to write the name of the door in the box "CustomSubItemTypeName", right? @flamez3 well, the key^^ It stays in the title RE: Key doens´t work... - flamez3 - 02-14-2012 Yes it does say it in the title but it also says "in my leveleditor the key has under the right subject the name of the door" I have no idea what that means. RE: Key doens´t work... - thephoenix1860 - 02-14-2012 well, i thought, that this sentence will be strong to understand^^ i mean, when you klick on the key, and klick right to "entity" under "CustomSubItemTypeName" (that is the right box, to write the door´s name) RE: Key doens´t work... - flamez3 - 02-14-2012 Why would you need to write the doors name in CustomSubItemTypeName? RE: Key doens´t work... - thephoenix1860 - 02-14-2012 errh....because so it stays ? a guy on youtube has done this and by him it works xD RE: Key doens´t work... - Your Computer - 02-14-2012 CustomSubItemTypeName can be whatever you want so long as it is reflected in the .lang file. RE: Key doens´t work... - flamez3 - 02-14-2012 (02-14-2012, 04:50 PM)thephoenix1860 Wrote: errh....because so it stays ?Are you trying to name the key? |