| A.I.   Member
 
 Posts: 114
 Threads: 16
 Joined: Feb 2012
 Reputation: 
2
 | 
			| 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 |  | 
	
		| flamez3   Posting Freak
 
 Posts: 1,281
 Threads: 48
 Joined: Apr 2011
 Reputation: 
57
 | 
			| 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 |  | 
	
		| A.I.   Member
 
 Posts: 114
 Threads: 16
 Joined: Feb 2012
 Reputation: 
2
 | 
			| RE: Switching Levels through colliders 
 
				Ohh, I understand.......things will get easier later on, anyways thanks
			 |  | 
	| 02-21-2012, 06:33 AM |  |