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
Timer troubles
evertuy Offline
Junior Member

Posts: 46
Threads: 9
Joined: Mar 2011
Reputation: 0
#1
Timer troubles

When you make a function inside of a function with a timer, I don't know how to write that correctly, please tell me how to fix?

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Scare_1", true, 1);
}
void Scare_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_chain_rattle_single.snt", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("Timer_1", 4.0f, "looking");

void looking(string &in asTimer)
{
SetEntityActive("human_skull_1", true);
StartPlayerLookAt("human_skull_1", 6.0f, 7.0f, "");
GiveSanityDamage(5.0f, true);
}

Sucky sucky 5 grand?
04-15-2011, 02:52 AM
Find


Messages In This Thread
Timer troubles - by evertuy - 04-15-2011, 02:52 AM
RE: Timer troubles - by Tanshaydar - 04-15-2011, 03:02 AM
RE: Timer troubles - by evertuy - 04-15-2011, 03:05 AM
RE: Timer troubles - by Dalroc - 04-15-2011, 11:21 AM



Users browsing this thread: 1 Guest(s)