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
Can't get scare script to work
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#5
RE: Can't get scare script to work

True make it like this->
void LampScare(string &in asEntity)
{
SetPlayerActive(false);
StartPlayerLookAt("ScriptArea_2", 2, 3, "StopLook");
AddPropImpulse("arabic_carafe_3", 10, 0, 0, "world");
GiveSanityDamage(3, true);
SetPlayerActive(true);
AddTimer("", 3.1, "settheplayeractiveagain");
}

void settheplayeractiveagain(string &in asTimer)
{
SetPlayerActive(true);
StopPlayerLookAt();
}

---
Just make the timer like you want it
-btw, you can remove this stoplook behind the StartPlayerLookat..
infact you are making a timer so Just put it in the timer if that will fit the scare\event
(This post was last modified: 01-06-2013, 06:51 PM by DnALANGE.)
01-06-2013, 06:46 PM
Find


Messages In This Thread
Can't get scare script to work - by zergling50 - 01-06-2013, 06:35 PM
RE: Can't get scare script to work - by DnALANGE - 01-06-2013, 06:38 PM
RE: Can't get scare script to work - by DnALANGE - 01-06-2013, 06:46 PM
RE: Can't get scare script to work - by Victor - 01-08-2013, 04:46 PM



Users browsing this thread: 1 Guest(s)