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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird coding errors?
goalreadymc
Unregistered

 
#1
Weird coding errors?

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);
09-07-2015, 03:37 AM


Messages In This Thread
Weird coding errors? - by goalreadymc - 09-07-2015, 03:37 AM
RE: Weird coding errors? - by Mudbill - 09-07-2015, 07:10 AM
RE: Weird coding errors? - by 7heDubz - 09-07-2015, 09:32 AM
RE: Weird coding errors? - by SwingsDarkCreeps - 09-07-2015, 10:15 AM



Users browsing this thread: 1 Guest(s)