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
Help with map changing.
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Help with map changing.

The callback syntax for the LoadMap1 function was incorrect. Also, I change the name of the function to CollideLoadMap1 (just so there's no confusion between the area to collide with in game and the function):


void OnStart()
{
AddEntityCollideCallback("Player", "LoadMap_1", "CollideLoadMap1", true, 1);
}

void CollideLoadMap1(string &in asParent, string &in asChild, int alState)
{
ChangeMap("final_the_beginning.map", "PlayerStartArea_1", "impact_dirt_med.snt", "");
}

Hope that helped.

I rate it 3 memes.
09-08-2012, 10:19 PM
Find


Messages In This Thread
Help with map changing. - by IGabx - 09-08-2012, 10:13 PM
RE: Help with map changing. - by Adny - 09-08-2012, 10:19 PM
RE: Help with map changing. - by IGabx - 09-08-2012, 10:28 PM
RE: Help with map changing. - by The chaser - 09-09-2012, 11:36 AM
RE: Help with map changing. - by IGabx - 09-15-2012, 11:19 PM
RE: Help with map changing. - by IGabx - 09-16-2012, 06:51 PM



Users browsing this thread: 1 Guest(s)