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
looping timer not working
RaXZerGamingZ Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jan 2019
Reputation: 0
#1
looping timer not working

Hello,

I have a looping timer (thanks to mudbill) however it does not work no matter what i try, no clue what i'm doing wrong if anyone can help would be much appreciated:

void OnStart()
{
        SetPlayerSanity(1);
        AddTimer("loop", 1, "Timer");
}

void Timer(string &in asTimer)
{
    if (GetPlayerSanity() <= 0.0f)
    {
        GivePlayerDamage(20.0f, "BloodSplat", false, true);
        AddPlayerSanity(1.0f);
    }
       AddTimer("loop", 1, "Timer");
}
03-16-2019, 12:10 AM
Find


Messages In This Thread
looping timer not working - by RaXZerGamingZ - 03-16-2019, 12:10 AM
RE: looping timer not working - by Romulator - 03-16-2019, 12:38 PM
RE: looping timer not working - by RaXZerGamingZ - 03-16-2019, 05:56 PM
RE: looping timer not working - by Mudbill - 03-16-2019, 11:38 PM
RE: looping timer not working - by RaXZerGamingZ - 03-17-2019, 12:09 AM
RE: looping timer not working - by Romulator - 03-17-2019, 04:38 AM
RE: looping timer not working - by RaXZerGamingZ - 03-17-2019, 12:44 PM



Users browsing this thread: 1 Guest(s)