Amnesia Freezing?
Hey,
My amnesia custom story keeps freezing when loading a map. It has something to do with the script because I've tried removing all script functions from the .hps file (leaving only OnStart, OnEnter, etc.) and it would load. There is no crash, only freeze on "Loading..."
Heres my script file:
////////////////////////////
// Run when entering map
void OnStart()
{
PlayMusic("23_amb02.ogg", true, 1.0, 4.0, 0, true);
SetPlayerSanity(50);
AddEntityCollideCallback("Player", "spawnsteve", "comesteve", true, 1);
AddEntityCollideCallback("Player", "dead", "deadend", true, 1);
AddEntityCollideCallBack("steve2", "black", "fadetoblack");
}
void comesteve(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("steve", true);
ShowEnemyPlayerPosition("steve");
}
void deadend(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("lookhere", 3, 3, "looksteve");
}
void looksteve(string &in asTimer)
{
StartPlayerLookAt("steve2", 10, 10, "");
}
void fadetoblack(string &in asTimer)
{
FadeOut(0);
FadeEnemyToSmoke("steve2", true);
StopMusic("23_amb02.ogg", 0);
StopLookAt();
AddTimer("", 3, "switch");
}
void switch(string &in asTimer)
{
ChangeMap("01-2.map", "PlayerStartArea_1", "", "");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Thanks in advance!
(This post was last modified: 06-21-2012, 05:16 AM by GetHimNotMe.)
|