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
A.I. Offline
Member

Posts: 114
Threads: 16
Joined: Feb 2012
Reputation: 2
#1
Switching Levels through colliders

I have been trying to figure this out but I am trying to make a collider that loads another level so far the only thing I know is void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);. But I need to figure out how can be triggered by the collider.
02-21-2012, 06:14 AM
Find
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
A.I. Offline
Member

Posts: 114
Threads: 16
Joined: Feb 2012
Reputation: 2
#3
RE: Switching Levels through colliders

Ohh, I understand.......things will get easier later on, anyways thanks
02-21-2012, 06:33 AM
Find




Users browsing this thread: 1 Guest(s)