Frictional Games Forum (read-only)
How can I make an area for a mapchange? - 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: How can I make an area for a mapchange? (/thread-8756.html)

Pages: 1 2


RE: How can I make an area for a mapchange? - SkuLLfac3 - 06-23-2011

Hmm...I think I search tomorrow for the problem. At my timezone its 3:31 AM Big Grin

But thanks for the other solutions and I will tell when I found out whats wrong ^^


RE: How can I make an area for a mapchange? - Rownbear - 06-23-2011

void OnStart()
{

AddEntityCollideCallback("Player", "toLatrine", "to_Latrine", false, 1);
}

void toLatrine(string &in asParent, string &in asChild, int alState)

{
ChangeMap("Latrine", "PlayerStartArea_1", "", "");
}

they don't match


RE: How can I make an area for a mapchange? - SkuLLfac3 - 06-23-2011

Thanks but the map still doesn't work. So I'm gonna to build this map again...


RE: How can I make an area for a mapchange? - Janni1234 - 06-23-2011

Try this:
{
ChangeMap("Latrine.map", "PlayerStartArea_1", "", "");
}



RE: How can I make an area for a mapchange? - SkuLLfac3 - 06-23-2011

I tried. Nothing happened. But I found the problem. After I build a new map, the game still loads the old file. I found the Intro2.map cache file and I deleted it. Now it works Smile

But thanks for all advices


RE: How can I make an area for a mapchange? - Doctorcheese - 06-23-2011

Always that darn cache ^^