The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help Changing map without a level door?
Tiger Away
Posting Freak

Posts: 1,874
Threads: 16
Joined: Nov 2012
Reputation: 55
#1
Question  Changing map without a level door?

So I'm making a custom story where in one part you're supposed to change map by walking on a static_object. I've tried putting a ScriptArea there with the following script:


void OnStart()
{
AddEntityCollideCallback("Player", "ChangeLevelScript_1", "ChangeMap_1", true, 1);
}

void ChangeMap_1
{
ChangeMap("MyMapName.map", "PlayerStartArea_1, "", "")
}


I've looked on the wiki and tried googling it. I can't find anything about it. Can somebody please help me?
(This post was last modified: 11-05-2012, 05:38 PM by Tiger.)
11-04-2012, 06:41 PM
Find


Messages In This Thread
Changing map without a level door? - by Tiger - 11-04-2012, 06:41 PM
RE: Changing map without a level door? - by Tiger - 11-04-2012, 06:50 PM
RE: Changing map without a level door? - by Tiger - 11-04-2012, 07:02 PM
RE: Changing map without a level door? - by Tiger - 11-04-2012, 11:48 PM
RE: Changing map without a level door? - by Tiger - 11-05-2012, 11:44 AM



Users browsing this thread: 1 Guest(s)