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
Help With Scripting Sanity Damage With Door!
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#2
RE: Help With Scripting Sanity Damage With Door!

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_1", true, true);
GiveSanityDamage(25, 1);
}

void OnEnter()
{

}

void OnLeave()
{

}

Note were i put the "1" in the sanity effect - If that doesnt work, replace it with "True"
10-08-2010, 03:21 AM
Find


Messages In This Thread
RE: Help With Scripting Sanity Damage With Door! - by Chilton - 10-08-2010, 03:21 AM



Users browsing this thread: 1 Guest(s)