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
[Solved]How to make unsettling events?
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: How to make unsettling events?

For the events
GiveSanityDamage(float afAmount, bool abUseEffect);

"float afAmount" is how much damage you want to give.

"bool abUseEffect" is the tunnel vision the player goes through when he sees the event.

For forcing the player to look
StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string &asAtTargetCallback);

"string& asEntityName" is what the player will look at.

"float afSpeedMul" how fast the player turns their head

"float afMaxSpeed" how fast the max speed the player turns

"string &asAtTargetCallback" what string triggers when the player is centered on the target.

What they look like in use:
//25% Insanity given and the scared effect
GiveSanityDamage(25, true);

//Player would look at the entity named monster, nothing else happens immediately
StartPlayerLookAt("monster", 6, 6, "");
(This post was last modified: 03-13-2011, 11:45 PM by Russ Money.)
03-13-2011, 11:43 PM
Find


Messages In This Thread
RE: How to make unsettling events? - by Russ Money - 03-13-2011, 11:43 PM
RE: How to make unsettling events? - by Danny Boy - 03-13-2011, 11:55 PM
RE: How to make unsettling events? - by Danny Boy - 03-14-2011, 12:17 AM
RE: How to make unsettling events? - by Danny Boy - 03-14-2011, 07:05 PM



Users browsing this thread: 1 Guest(s)