Teleporting from map to map PLS HELP!!! [SOLVED] - 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: Teleporting from map to map PLS HELP!!! [SOLVED] (/thread-17547.html) |
Teleporting from map to map PLS HELP!!! [SOLVED] - Melvin - 08-06-2012 I've been browsing on the internet for 5 hours, and it is starting to get frustrating... This is what I want to do: Player stands next to bed, screen fades out (theres an area next to the bed called: "PlayerSleep" Player wakes up in another map(!) (I have one Floor_2_day.map and one Floor_2_Night.map, I want to switch from day to night you get it?) Now this is my script I have so far (just started) //////////////////////////// // Run when first time starting map void OnStart() { AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1); } void StartMusic(string &in asParent, string &in asChild, int alState) { PlayMusic("Beforethestorm.ogg", true, 0.4, 8, 1, true); } Script for the Floor_2_Night.map[b] //////////////////////////// // Run first time starting map void OnEnter() { } [b]Can anyone, pls help me???[/b][/b] RE: Teleporting from map to map PLS HELP!!! - Brothersvv09 - 08-07-2012 OMG! I HAVE HAVING THE SAME PROBLEM TOO! OMG THAT IS THE SAME SCRIPT I AM USING! OMGO!!!!! Same here!?!?! I want to get KNOCKED OUT but how do i teleport?!? Also..... What is the KNockout script?!!? RE: Teleporting from map to map PLS HELP!!! - Melvin - 08-07-2012 (08-07-2012, 01:37 AM)Brothersvv09 Wrote: OMG! I HAVE HAVING THE SAME PROBLEM TOO! OMG THAT IS THE SAME SCRIPT I AM USING! OMGO!!!!! Same here!?!?! I want to get KNOCKED OUT but how do i teleport?!? Also..... What is the KNockout script?!!?Bro Ive been searching the WHOLE NIGHT (its night here) its freaking 4 AM now... IVE STARTED 22:00 PM... STILL I haven't got ANYTHING! But I see lots of custom stories doing it like it nothing! But how? I can't continue if this isnt fixed :S RE: Teleporting from map to map PLS HELP!!! - lolmaster - 08-07-2012 http://wiki.frictionalgames.com/hpl2/amnesia/script_functions Code: void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound); The answer was literally right there. Check the dev wiki. RE: Teleporting from map to map PLS HELP!!! - Melvin - 08-07-2012 (08-07-2012, 03:38 AM)lolmaster Wrote: http://wiki.frictionalgames.com/hpl2/amnesia/script_functionsI already have it working bro, thanks anyways for the reply |