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
Activating sanity and makign a level door operate.
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#4
RE: Activating sanity and makign a level door operate.

Simply add
"GiveSanityDamage(<amount of damage here>, <use distort effect true/false> )"

Here's an example from your script:
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(1.0f, true);
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");
}
10-04-2010, 10:57 AM
Find


Messages In This Thread
RE: Activating sanity and makign a level door operate. - by Equil - 10-04-2010, 10:57 AM



Users browsing this thread: 1 Guest(s)