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
Script Help Galloglaich's problems with scripting and other stuff
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#2
RE: Cant figure out a proper name for this

You mean, when a player is looking at an area he loses sanity?

void OnStart()
{
SetEntityPlayerLookAtCallback("SCRIPT_AREA_NAME", "LOOKATSANITYDRAIN", false);
}

void LOOKATSANITYDRAIN(string &in asEntity, int alState)
{
GiveSanityDamage(5.0f, true); //change 5.0f to the damange you want to be given and true to false if you don't want sanity damage effect
}
(This post was last modified: 03-17-2012, 09:35 PM by ClayPigeon.)
03-17-2012, 09:32 PM
Find


Messages In This Thread
RE: Cant figure out a proper name for this - by ClayPigeon - 03-17-2012, 09:32 PM



Users browsing this thread: 1 Guest(s)