Can't play my custom story - 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: Can't play my custom story (/thread-17499.html) Pages:
1
2
|
RE: Can't play my custom story - SuperSoldier333 - 08-05-2012 I already added an " and I can't open the door anyway. RE: Can't play my custom story - Steve - 08-05-2012 show us your code at the moment and make sure to check the names RE: Can't play my custom story - SuperSoldier333 - 08-05-2012 //////////////////////////// // Run when the map starts void OnStart() { AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true); } void OuvrirPorte(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false); RemoveItem("keydoor"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } I checked and the names of the door and the key are correct. RE: Can't play my custom story - Steve - 08-05-2012 All I can think of any further is that you have an level door or something just an guess further the code seems all right btw if you do have an leveldoor the code would be SetLevelDoorLocked("mansion_1", false); and also can you hear the sound of an door unlocking though? RE: Can't play my custom story - SuperSoldier333 - 08-05-2012 What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt. RE: Can't play my custom story - Steve - 08-05-2012 (08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt. could you send me an link with an .rar file with your map and scripts? so I can look for my self I think it has dto do with something else than the code RE: Can't play my custom story - tokugawa1 - 08-05-2012 (08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.try this code: //////////////////////////// // Run when the map starts void OnStart() { AddUseItemCallback("", "keydoor", "mansion_1", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false); RemoveItem("keydoor"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } Hope this helps RE: Can't play my custom story - SuperSoldier333 - 08-05-2012 (08-05-2012, 08:06 PM)tokugawa1 Wrote:I tried with this one and I can't even see the custom story in-game.(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.try this code: (08-05-2012, 08:03 PM)Steve Wrote:How? I'm sorry but I really don't know how.(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt. RE: Can't play my custom story - Steve - 08-05-2012 make an .rar file with right click(in a map or desktop) and new>winRAR zip archive, put your files in there and upload it at an site like mediafire or something RE: Can't play my custom story - SuperSoldier333 - 08-05-2012 Steve, I sent you a message. |