Frictional Games Forum (read-only)
Map Duplicate Help! - 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: Map Duplicate Help! (/thread-9821.html)



Map Duplicate Help! - JetlinerX - 08-17-2011

So... we made a pretty major mistake. We have 2 maps, separated with a level transfer door. However, we need it to be one map, with a swing door. Any way to combine two maps? Or are we screwed having to re-create it?

_________________________________
[SOLVED]
Just exported all objects, and imported over. Simple things we were trying to over complicate!


RE: Map Duplicate Help! - Kyle - 08-17-2011

There are many ways you can combine 2 maps. I'll go tell you the most basic one. Tongue

Door = swing door used in level transfer.
Map01 = first map that links to second map.
Map02 = second map that links to first map.

Code:
void OnStart()
{
     SetEntityPlayerInteractCallback("Door", "Func01", false);
}
void Func01(string &in asEntity)
{
     FadeOut(3);
     FadeIn(6);
     ChangeMap("Map02", "PlayerStartArea_1", "", "");
}

Then on the other side of the door have it do the exact same thing except that have it be "PlayerStartArea_2" and "Map01" for the ChangeMap command function.

Hope this helps! Smile


RE: Map Duplicate Help! - Khyrpa - 08-17-2011

You can select everything from a map. Then export it somewhere and from the other map you can import the stuff you exported!


RE: Map Duplicate Help! - JetlinerX - 08-17-2011

yes, thats how we did it, I changed this to "Solved" a while ago Wink