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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Timer troubles

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);
}

You forgot a '}' after adding timer.

04-15-2011, 03:02 AM
Website 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)