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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: ChangeMap doesn't work!

You have the wrong callback syntax.

Tutorials: From Noob to Pro
06-16-2012, 07:14 AM
Website Find
bartimeus Offline
Junior Member

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

Please, can you tell me where I have spelled it wrong?
(This post was last modified: 06-16-2012, 03:18 PM by bartimeus.)
06-16-2012, 03:17 PM
Find
bartimeus Offline
Junior Member

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

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)
06-16-2012, 05:04 PM
Find




Users browsing this thread: 1 Guest(s)