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
Where
Icaab2607 Offline
Junior Member

Posts: 34
Threads: 13
Joined: Mar 2013
Reputation: 0
#1
Bug  Where

Where here error? Huh

void OnStart()
{
AddEntityCollideCallback("Player", "InsanityHall", "FuncInsanityHall", false, 0);
}

void FuncInsanityHall(string &in asParent, string &in asChild, int alState)
{
if(alState == 1) {
SetLocalVarFloat("init_sanity", GetPlayerSanity());
AddTimer("start_drain", 0.01, "SanityDrain");
}
if(alState == -1) {
SetPlayerSanity(GetLocalvarFloat("init_sanity"));
RemoveTimer("drain_loop");
RemoveTimer("start_drain");
}
}

void SanityDrain(string &in asTimer)
{
if(asTimer == "start_drain") return;
if(GetPlayerSanity() > 20) GiveSanityDamage(5, false);
AddTimer("drain_loop", 1, "SanityDrain");
}
04-26-2013, 01:14 PM
Find


Messages In This Thread
Where - by Icaab2607 - 04-26-2013, 01:14 PM
RE: Where - by xxxxxxxxxxxxxxxx - 04-26-2013, 01:27 PM
RE: Where - by PutraenusAlivius - 04-26-2013, 01:45 PM
RE: Where - by Romulator - 04-26-2013, 02:07 PM
RE: Where - by Tomato Cat - 04-26-2013, 03:22 PM
RE: Where - by Icaab2607 - 04-28-2013, 08:55 AM
RE: Where - by Tomato Cat - 04-28-2013, 02:33 PM
RE: Where - by PutraenusAlivius - 04-28-2013, 02:39 PM
RE: Where - by Tomato Cat - 04-28-2013, 02:43 PM
RE: Where - by Icaab2607 - 04-28-2013, 06:18 PM



Users browsing this thread: 2 Guest(s)