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
Script Help Switching Levels through colliders
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Switching Levels through colliders

If by "collider" you mean a ScriptArea.

void OnStart()
{
AddEntityCollideCallback("Player", "nameofscriptarea", "changemap", true, 1);
}

void changemap(string &in asParent, string &in asChild, int alState)
{
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
}

02-21-2012, 06:31 AM
Find


Messages In This Thread
Switching Levels through colliders - by A.I. - 02-21-2012, 06:14 AM
RE: Switching Levels through colliders - by flamez3 - 02-21-2012, 06:31 AM
RE: Switching Levels through colliders - by A.I. - 02-21-2012, 06:33 AM



Users browsing this thread: 1 Guest(s)