Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Teleporting from map to map PLS HELP!!! [SOLVED]
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#1
Teleporting from map to map PLS HELP!!! [SOLVED]

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]

[Image: 25F7U37.png]
(This post was last modified: 08-07-2012, 08:02 AM by Melvin.)
08-06-2012, 11:40 PM
Website Find
Brothersvv09 Offline
Member

Posts: 57
Threads: 29
Joined: Aug 2012
Reputation: 0
#2
RE: Teleporting from map to map PLS HELP!!!

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?!!?
08-07-2012, 01:37 AM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#3
RE: Teleporting from map to map PLS HELP!!!

(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

[Image: 25F7U37.png]
08-07-2012, 02:53 AM
Website Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#4
RE: Teleporting from map to map PLS HELP!!!

http://wiki.frictionalgames.com/hpl2/amn..._functions

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

The answer was literally right there. Check the dev wiki.


08-07-2012, 03:38 AM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#5
RE: Teleporting from map to map PLS HELP!!!

(08-07-2012, 03:38 AM)lolmaster Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

The answer was literally right there. Check the dev wiki.
I already have it working bro, thanks anyways for the reply Wink

[Image: 25F7U37.png]
08-07-2012, 08:02 AM
Website Find




Users browsing this thread: 2 Guest(s)