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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help New Question: How to create a door
Nervly Offline
Junior Member

Posts: 40
Threads: 2
Joined: Feb 2012
Reputation: 0
#56
RE: 3 Questions: Cave In and Destroying bookshelf

(06-29-2012, 08:52 PM)FastHunteR Wrote: When in doubt, check how frictional games made it. I searched it out for you:
void 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
Thanks, I saw the .hps file of the Old Archives but I couldn't make it work in mine.
I tried te script you gave me too, but I got error. I'll try something and see if it works. Smile
Thank you once again, +1 Rep.

EDIT:
Everything is working! Smile
The candles go off after the wind comes and the zoom is working.
There's just one problem:

I made it so the player would look at a pot plant when he steps a script area, but he doesn't look. :/
Here is the script:

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "pot_area", "PotBreaks", true, 1);
AddEntityCollideCallback("Player", "wind_area", "Wind", true, 1);
AddEntityCollideCallback("Player", "SeeTorsoSound", "React", true, 1);
}
void PotBreaks(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("pot_plant_small01_4", false);
SetEntityActive("pot_plant_small01_3", true);
SetEntityActive("wind_area", true);
GiveSanityDamage(5, true);
StartPlayerLookAt("table_nice_round_1", 10, 100, "");
}

That's just the part of the pot, the script has more stuff for the other functions.
I tried aswell with the StopPlayerLookAt() but didn't work too.
What am I doing wrong?

Check it out!
http://www.youtube.com/Nervly

Please?
[Image: please-please-please.jpg]
(This post was last modified: 06-30-2012, 01:10 AM by Nervly.)
06-29-2012, 09:44 PM
Find


Messages In This Thread
New Question: How to create a door - by Nervly - 06-20-2012, 12:55 PM
RE: 3 Questions: Cave In and Destroying bookshelf - by Nervly - 06-29-2012, 09:44 PM



Users browsing this thread: 1 Guest(s)