The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Teleporting from map to map PLS HELP!!! [SOLVED] - by Melvin - 08-06-2012, 11:40 PM



Users browsing this thread: 1 Guest(s)