The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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!
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#1
Help With Scripting Sanity Damage With Door!

I need help with trying to make it when the door closes, you get sanity damage. I need for this to get combined for it to work nicely. Smile

GiveSanityDamage(float afAmount, bool abUseEffect);


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);
}

void OnEnter()
{

}

void OnLeave()
{

}
Anyone please?

(This post was last modified: 10-08-2010, 12:11 AM by Kyle.)
10-07-2010, 11:42 PM
Find


Messages In This Thread
Help With Scripting Sanity Damage With Door! - by Kyle - 10-07-2010, 11:42 PM



Users browsing this thread: 1 Guest(s)