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
[Solved]Help i don't know how to use Timers
Danny Boy Offline
Posting Freak

Posts: 2,718
Threads: 85
Joined: Mar 2011
Reputation: 81
#3
RE: Help i don't know how to use Timers

well that does not work =/

i wanted to the player wend enters a area the door closes in a noise and creapy way, so the player looks behind him to see what happned... i wanted a timer to to make him stop looking at the door... and wend i have put the timer he does not look at the door eny more =/ what is the prob?

here is the code if it helps:

void OnStart()
{
AddEntityCollideCallback("Player", "ScaryAreaone", "CollideScaryArea", true, 1);
}
void CollideScaryArea(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("SuperDoor", true, true);
PlaySoundAtEntity("", "break_wood", "SuperDoor",0,false);
PlaySoundAtEntity("", "react_pant", "Player",0,false);
PlayGuiSound("insanity_monster_roar01.ogg", 1.0f);
GiveSanityDamage(25, true);
StartPlayerLookAt("SuperDoor", 7, 6, "");
AddTimer("Peek a Boo", 02.0f, "CollideScaryArea");
{
StopPlayerLookAt();
}

}
03-17-2011, 12:28 AM
Website Find


Messages In This Thread
RE: Help i don't know how to use Timers - by Danny Boy - 03-17-2011, 12:28 AM



Users browsing this thread: 1 Guest(s)