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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChangeMap doesn't work!
bartimeus Offline
Junior Member

Posts: 20
Threads: 6
Joined: Jun 2012
Reputation: 0
#1
ChangeMap doesn't work!

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","","");
}
06-16-2012, 06:01 AM
Find


Messages In This Thread
ChangeMap doesn't work! - by bartimeus - 06-16-2012, 06:01 AM
RE: ChangeMap doesn't work! - by Your Computer - 06-16-2012, 07:14 AM
RE: ChangeMap doesn't work! - by bartimeus - 06-16-2012, 03:17 PM
RE: ChangeMap doesn't work! - by bartimeus - 06-16-2012, 05:04 PM



Users browsing this thread: 1 Guest(s)