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?
ZeroPie Offline
Junior Member

Posts: 15
Threads: 2
Joined: Apr 2012
Reputation: 0
#8
RE: Changing map without a level door?

(11-04-2012, 11:48 PM)Tigerwaw Wrote: So this is what my script looks like now:


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

void ChangeMap_1 (string &in asParent, string &in asChild, intalState)
{
ChangeMap("MapName.map", "PlayerStartArea_2", "player_jump6.ogg", "player_bodyfall5.ogg")
}

Amnesia crashes when I open my custom story. Why?
On the ChangeMap("MapName.map", "PlayerStartArea_2", "player_jump6.ogg", "player_bodyfall5.ogg") add a ;
This must be used after every script is typed out, so use this:
ChangeMap("MapName.map", "PlayerStartArea_2", "player_jump6.ogg", "player_bodyfall5.ogg");

Hope it helps.
11-05-2012, 02:11 AM
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 ZeroPie - 11-05-2012, 02:11 AM
RE: Changing map without a level door? - by Tiger - 11-05-2012, 11:44 AM



Users browsing this thread: 1 Guest(s)