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
Insanity Problem
Nemesis751 Offline
Junior Member

Posts: 7
Threads: 1
Joined: Sep 2010
Reputation: 0
#6
RE: Insanity Problem

void OnStart()
{
SetEntityPlayerLookAtCallback("slime_egg_3", "PlayerLookAt", true);
)

void PlayerLookAt(string &in entity, int alState)
{
GiveSanityDamage(40.0f, true);
}


Where it says slime egg 3 you can put whatever entity you want, same with "PlayerLookAt".

So what happens here is the player looks at the slime egg and will loose 40 sanity out of 100 then you insanity areas will kick in Smile hope i helped.

one more thing you can change the 40 to whatever number you like.
(This post was last modified: 11-07-2010, 05:55 PM by Nemesis751.)
11-07-2010, 05:49 PM
Find


Messages In This Thread
Insanity Problem - by Everlone - 11-07-2010, 05:11 PM
RE: Insanity Problem - by Nemesis751 - 11-07-2010, 05:20 PM
RE: Insanity Problem - by Everlone - 11-07-2010, 05:22 PM
RE: Insanity Problem - by Nemesis751 - 11-07-2010, 05:25 PM
RE: Insanity Problem - by Everlone - 11-07-2010, 05:28 PM
RE: Insanity Problem - by Nemesis751 - 11-07-2010, 05:49 PM
RE: Insanity Problem - by Everlone - 11-07-2010, 06:04 PM
RE: Insanity Problem - by Nemesis751 - 11-07-2010, 06:07 PM



Users browsing this thread: 1 Guest(s)