Frictional Games Forum (read-only)
Disable/enable ladder interaction? - 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: Disable/enable ladder interaction? (/thread-16562.html)



Disable/enable ladder interaction? - Damascus - 06-28-2012

It seems that players can still climb a ladder area that's been set "inactive," so is there any other way to keep a player from interacting with a ladder area until something triggers it?

I have a ladder area that's set up behind a breakable cell wall, and want the player to destroy the wall before climbing down the ladder, but it seems like all they have to do is look through the hole and click the ladder to proceed. I've tried putting a large block_box in the way, but I can still reach through it to click the ladder.


RE: Disable/enable ladder interaction? - Streetboat - 06-28-2012

In my story Deterioration, I could definitely set a LadderArea to inactive and have it switch states via a script, so I can't tell you why it doesn't work. It really should. Are you sure you got the names right? Perhaps you made a typo.


RE: Disable/enable ladder interaction? - EXAWOLT - 06-28-2012

Make sure you dont have 2 areas on the same place!
//////////////
The script to activate/deactivate any areas or entities is:

SetEntityActive("LadderArea_1", false);

false = inactive

true = active


RE: Disable/enable ladder interaction? - Damascus - 06-28-2012

Hmm, that seems to be working now. I don't know why it wouldn't before! Maybe I forgot to save. Thanks guys!