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
Drain sanity while looking at something?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Drain sanity while looking at something?

(09-21-2011, 03:08 AM)Xvideogamer720X Wrote: Ohhh...Well isnt there another way to do what I mentioned without insanity areas?

Possibly:
void LowerSanity(string &in entity, int state)
{
     if (entity == "script_area_name" && state == 1)
     {
          LowerSanity(entity);
     }

     else RemoveTimer(entity);
}

void LowerSanity(string &in timer_name)
{
     GiveSanityDamage(1, false);
     AddTimer(timer_name, 1, "LowerSanity");
}

SetEntityPlayerLookAtCallback("script_area_name", "LowerSanity", false);

Tutorials: From Noob to Pro
(This post was last modified: 09-21-2011, 03:26 AM by Your Computer.)
09-21-2011, 03:22 AM
Website Find


Messages In This Thread
RE: Drain sanity while looking at something? - by Your Computer - 09-21-2011, 03:22 AM



Users browsing this thread: 1 Guest(s)