![]() |
ChangeMap doesn't work! - 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: ChangeMap doesn't work! (/thread-16188.html) |
ChangeMap doesn't work! - bartimeus - 06-16-2012 Hi! I'm actually working on a custom story, and at a moment the player is supposed to fall on a hole... So I created a ChangeMap script but it doesn't work. In fact, the next map don't load and I fall endlessly...I've already got a map named "souterrains" and a playerstartarea on it... Here's the script: void OnStart() { AddEntityCollideCallback("Player", "hole", "Changement", true, 1); } void Changement(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound) { ChangeMap("souterrains", "PlayerStartArea_1","",""); } RE: ChangeMap doesn't work! - Your Computer - 06-16-2012 You have the wrong callback syntax. RE: ChangeMap doesn't work! - bartimeus - 06-16-2012 Please, can you tell me where I have spelled it wrong? RE: ChangeMap doesn't work! - bartimeus - 06-16-2012 Found it. I had to replace: void Changement(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound) with: void Changement(string &in asParent, string &in asChild, int alState) |