Frictional Games Forum (read-only)
[SCRIPT] Attaching script areas to doors? - 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: [SCRIPT] Attaching script areas to doors? (/thread-56768.html)



Attaching script areas to doors? - Doremovu - 04-30-2020

Good *daytime*, folks!

There is a certain problem i've encountered. I have an area that perfectly matches the body of a door, and is placed right in one. The thing it works good until i, obviously, open this door so they don't match anymore. Script would have worked perfectly if only "GetEntitiesCollide" worked with player, but it doesn't so i am forced to replace it with colliding with areas. Any ideas how to solve that problem?


RE: Attaching script areas to doors? - Doremovu - 04-30-2020

(04-30-2020, 09:05 AM)Doremovu Wrote: Good *daytime*, folks!

There is a certain problem i've encountered. I have an area that perfectly matches the body of a door, and is placed right in one. The thing it works good until i, obviously, open this door so they don't match anymore. Script would have worked perfectly if only "GetEntitiesCollide" worked with player, but it doesn't so i am forced to replace it with colliding with areas. Any ideas how to solve that problem?

Hey! The problem seems to be solved, though some spaghetti code is used. Sorry for wasted time for those who cared. Delete the thread, please!