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 for traumatic/fear visual effects
JohnnyMedieval Offline
Junior Member

Posts: 5
Threads: 1
Joined: Aug 2013
Reputation: 0
#7
RE: Script for traumatic/fear visual effects

Thanks, yeah I got an error when I tried it the first way.

I just changed it to your code, but the area didn't trigger any visual effects.
This is what I have now:
void OnStart ()
{
    AddEntityCollideCallback("player", "ScriptArea_1", "CollideArea1", true, 1);
}

void CollideArea1(string &in asParent, string &in asChild, int alState)

{
    FadePlayerFOVMulTo(3, 2);

    GiveSanityDamage(5.0f, true);
}
I tried remaking the area too, and used the default name in the editor and in the script. It's still not working and I have no idea what I'm doing wrong.
Sorry, like I said, I know nothing about scripting.
If someone could tell me what to fix I appreciate it, thanks.
(This post was last modified: 08-28-2013, 04:35 PM by JohnnyMedieval.)
08-28-2013, 04:04 PM
Find


Messages In This Thread
RE: Script for traumatic/fear visual effects - by JohnnyMedieval - 08-28-2013, 04:04 PM



Users browsing this thread: 1 Guest(s)