Amnesia crashes when loading map
My FC mod crashes when i load a map, i figured out that problem with HPS, but whats wrong with it?
void OnStart()
{
PlaySoundAtEntity("", "00_00_elevatormusic.snt", "Elevator_music_looping_1", 0.5f, true);
PlaySoundAtEntity("", "elevator_loop.snt", "Elevator_looping_1", 0.5f, true);
AddTimer("", 15, "elevator_stops_scene");
AddTimer("", 13, "elevator_fadeout");
AddEntityCollideCallback("Player", "Light_1_Scene", "Lights_Begin", true, 1);
}
void light_two(string &in asTimer)
{
SetEntityActive("tesla_lamp_ball_Raleigh_1", true);
PlaySoundAtEntity("", "00_intro_machine_lamp_lit.snt", "Player", 0.0f, false);
}
void Lights_Begin(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("tesla_lamp_ball_Raleigh_2", true);
AddTimer("", 4, "light_two");
PlaySoundAtEntity("", "00_intro_machine_lamp_lit.snt", "Player", 0.0f, false);
PlayMusic("01_EricOffice.ogg", false, 1.0f, 0.0f, 10, false);
}
void elevator_fadeout(string &in asTimer)
{
FadeOut(1.0f);
}
void elevator_stops_scene(string &in asTimer)
{
PlaySoundAtEntity("", "elevator_stop.snt", "Player", 0.0f, false);
FadeIn(1.0f);
TeleportPlayer("PlayerStartArea_2");
}
void OnEnter()
{
SetSanityDrainDisabled(true);
}
void OnLeave()
{
}
|