![]() |
Ladder - 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: Ladder (/thread-21648.html) |
Ladder - Butykos - 05-27-2013 Hi there, I want to make a ladder puzzle, like in Justine. (You know, with the ladder piece) My script is wrong, but I don't know why, because it's not working... Please take a look... void OnStart () { AddUseItemCallback("LadderOnHole", "ladder_piece", "AreaAttachLadder", "UseLadderOnArea", true); } // Using ladder item on the hole, activates a ladder entity and ladder area void UseLadderOnArea(string &in asItem, string &in asEntity) { RemoveItem("ladder_piece"); SetPropActiveAndFade("static_ladder", true, 0.5f); SetEntityActive("LadderArea", true); PlaySoundAtEntity("attach", "05_attach_ladder", "static_ladder", 0.0f, false); } RE: Ladder - FlawlessHappiness - 05-28-2013 Everything looks correct. There are 2 things to debug your problem. 1. Check all the names of the entities you are using. Maybe you accidently wrote something wrong. 2. Go to your /maps folder and delete the .map cache. It can prevent changes from happening in your ingame map. RE: Ladder - Butykos - 05-28-2013 Thank you, I checked it, everything's correct and I don't have a .cache file... :/ RE: Ladder - OriginalUsername - 05-28-2013 What's the error message? RE: Ladder - Butykos - 05-29-2013 There's no error message The game starts, just the ladder doesn't work.... RE: Ladder - OriginalUsername - 05-29-2013 You mean the climbing part? You'll need an ladder area for that. |