Frictional Games Forum (read-only)
Level-changing 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: Level-changing doors?? (/thread-14655.html)



Level-changing doors?? - FragdaddyXXL - 04-09-2012

Simple question:
How does one create one of those level-changing doors in the level editor?
You come up to it, you click on it, and level-changing script runs.
I couldn't find it on the wiki. Sounds like it should be there Sad



RE: Level-changing doors?? - Strembitsky - 04-09-2012

Entities > Doors > any door the the level_ prefix.


RE: Level-changing doors?? - FragdaddyXXL - 04-09-2012

And what would the script look like?



RE: Level-changing doors?? - Tekkie - 04-09-2012

(04-09-2012, 10:35 PM)FragdaddyXXL Wrote: And what would the script look like?

There is no script, you can choose which map you want it to load when you choose the level door. It should be under the entity tab, and then MapFile. It's really simple to do, and doesn't require any coding at all really.


RE: Level-changing doors?? - FragdaddyXXL - 04-09-2012

(04-09-2012, 10:49 PM)Tekkie Wrote:
(04-09-2012, 10:35 PM)FragdaddyXXL Wrote: And what would the script look like?

There is no script, you can choose which map you want it to load when you choose the level door. It should be under the entity tab, and then MapFile. It's really simple to do, and doesn't require any coding at all really.
Thanks!





RE: Level-changing doors?? - Putmalk - 04-10-2012

You can also change levels without the use of a level door, via the ChangeMap function.

Syntax:
ChangeMap("newlevel.map", "PlayerStartArea_1", dooropeningsound, doorclosingsound);