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
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
RE: Script for traumatic/fear visual effects

Well according to what you said knowing how to set up an "area", I'll assume you're familiar with AddEntityCollideCallback. If you're not, tell me, and I'll elaborate.

The visual effect you're looking for is actually very simple, and is built into the engine. it plays when the player takes sanity damage. It works as follows:

Quote:
void GiveSanityDamage(float afAmount, bool abUseEffect);

Reduces the sanity of the player.

afAmount - amount of sanity damage done

abUseEffect - determines whether an effect is played when the sanity damage is dealt

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 08-28-2013, 03:19 PM by Kreekakon.)
08-28-2013, 03:19 PM
Find


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



Users browsing this thread: 1 Guest(s)