![]() |
HPS error (level editing) - 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: HPS error (level editing) (/thread-14037.html) Pages:
1
2
|
RE: HPS error (level editing) - mrscoomich - 03-21-2012 No :\ Still nothing. RE: HPS error (level editing) - DaAinGame - 03-21-2012 void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false); RemoveItem("key_1"); } This didn't work for you? Hm.... Everything in that code looks fine to me. No missing " or ; You said that everything works except for the sound playing correct? If so, did you mess with that sound file? Moved it or anything? If you didn't try using "unlock_door.ogg" .snt should've worked but I don't know what else you could try =/. I would say that names didn't match up, but if the door still unlocks that wouldn't be the case RE: HPS error (level editing) - mrscoomich - 03-21-2012 Oh, alright. It worked ![]() I put "unlocked_door.snt" instead of "unlock_door.snt" Thank you so much! =D I appreciate it. RE: HPS error (level editing) - DaAinGame - 03-21-2012 Good to hear! Feel free to message me if you have any more questions, I'm always available to help to the best of my abilities. |