My bookshelf won't rotate! - 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: My bookshelf won't rotate! (/thread-13217.html) |
My bookshelf won't rotate! - Bas - 02-10-2012 Hello everybody, I followed the tutorial about 'Levers that opens secret shelfs' on the wiki page. It says you have to create an area like this: img6.imageshack.us/img6/4914/shelf1.png to make your shelf rotate. Then go to 'AngularOffsetArea' at the 'Entity' of the bookshelf and type in: 'rotatearea'. The problem is that this 'Area script' doesn't work at all, the bookshelf won't rotate, it just slides to the right. I think i'm missing a script about the 'Area rotate script'. Could anyone help please? This is extreme new for me . My .HPS: //////////////////////////// // Run first time starting map void OnStart() { SetEntityConnectionStateChangeCallback("lever", "func_shelf"); } void func_shelf(string &in asEntity, int alState) { if (alState == 1) { SetMoveObjectState("shelf_1",1.0f); PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false); return; } } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } RE: My bookshelf won't rotate! - Your Computer - 02-10-2012 Could be .map_cache file conflict. |