Hi,
I'm trying to script my HPS file and I keep getting weird crashes when I open my custom story, so I was wondering if anybody can check my code. Thank you!
void OnStart()
//
SetPlayerActive(false);
FadeOut(0);
AddTimer("", 1.4, "CoughTimer");
SetEntityPlayerInteractCallback("", "IntroCreditsDoor1", true);
AddEntityCollideCallback("LanternVeriMessage", "Player", "LanternVeriMessage", false, 1);
void CoughTimer(string &in asTimer)
//
PlaySoundAtEntity("", "player_cough.snt", "Player", 0.1f, false);
AddTimer("", 2.6, "WakeTimer");
void WakeTimer(string &in asTimer)
//
PlaySoundAtEntity("", "player_crouch.snt", "PLayer", 0.1f, false);
FadeOut(0.7);
void IntroCreditsDoor1(string &in asEntity)
//
SetMessage("IntroCredits", "Door1", 1.7);
void LanternVerification(string &in asItem, string &in asEntity)
//
SetEntityActive("LanternVeriBarrier", false);
SetEntityActive("LanternVeriMessage", false);
void LanternVeriMessage(string &in asParent, string &in asChild, int alState)
//
SetMessage("IntroCredits", "LanternVeriMessage", 1.7);