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
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Script for traumatic/fear visual effects

(08-28-2013, 03:49 PM)JohnnyMedieval Wrote: Thanks again guys. Ok, so this is what I have, please let me know if I've done this right:

void OnStart ()
{
    AddEntityCollideCallback("player", "Area1", "CollideArea1", true, 1)
}

void CollideArea1
{
    void GiveSanityDamage(float 1, true)
}

I'm not sure if I'm supposed to leave "float" in there, or if "1" is the right variable format to set the sanity damage.

void OnStart ()
{
    AddEntityCollideCallback("player", "Area1", "CollideArea1", true, 1);
}

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

{
GiveSanityDamage(1, true);
}

This is the right code. By tunnel, I think you mean the Field Of View:

FadePlayerFOVMulTo(float afX, float afSpeed);

Changes the field of view of the player. A shorter FOV will create a zoom effect.

afX - multiplier of default FOV (1 is default)
afSpeed - the speed of change between FOV's

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-28-2013, 03:55 PM
Find


Messages In This Thread
RE: Script for traumatic/fear visual effects - by The chaser - 08-28-2013, 03:55 PM



Users browsing this thread: 2 Guest(s)