Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make objects 'scare' the player?
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#3
RE: Make objects 'scare' the player?

Here's the script you should use:

GiveSanityDamage(5.0f, true);

Change the number to whatever you see fit for the situation.

As for focusing on the dead body you can use this:

StartPlayerLookAt("nameofdeadbody", 4.0f, 4.0f, "");

Change name of "nameofdeadbody" to whatever you named your dead body in the level editor. Also remember to call a StopPlayerLookAt(); when you want him to stop looking, otherwise your player will look at the body forever.

As with sanity damage, mess around with the values to achieve the disired effect. Read up more at script functions:
http://wiki.frictionalgames.com/hpl2/amn...s#insanity

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 09-15-2012, 02:22 PM by Kreekakon.)
09-15-2012, 02:22 PM
Find


Messages In This Thread
Make objects 'scare' the player? - by Ungotter - 09-15-2012, 01:13 PM
RE: Make objects 'scare' the player? - by i3670 - 09-15-2012, 02:04 PM
RE: Make objects 'scare' the player? - by Kreekakon - 09-15-2012, 02:22 PM



Users browsing this thread: 1 Guest(s)