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
Capture scene problems
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#1
Capture scene problems

Im trying to make a capture scene where a monster will pop up in front of you and will throw you and then the screen will fade and change the map. But the Fade is not working.


void OnStart()
{
AddEntityCollideCallback("Player", "monster", "func_monster", true, 1);
}

void OnEnter()
{
PlayMusic("amb_extra02", true, 1.3f, 0.0f, 5, true);
SetMessage("PersonalThoughts", "NeedRun", 6);
}


void func_monster(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);

StartPlayerLookAt("level_wood_1",10.0f,10.0f,"");

SetEntityActive("enemy_suitor_1", true);

PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);

AddPlayerBodyForce(0, 99000, -99000, false);

AddTimer("", 0.01, "Fade");
}

void Fade(string &in asTimer)
{
FadeIn(2.0f);
}

[Image: qg_logo.png]
(This post was last modified: 12-30-2011, 09:54 AM by Nomad923.)
12-30-2011, 09:23 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Capture scene problems

(12-30-2011, 09:23 AM)NoMaD923 Wrote: Im trying to make a capture scene where a monster will pop up in front of you and will throw you and then the screen will fade and change the map. But the Fade is not working.


void OnStart()
{
AddEntityCollideCallback("Player", "monster", "func_monster", true, 1);
}

void OnEnter()
{
PlayMusic("amb_extra02", true, 1.3f, 0.0f, 5, true);
SetMessage("PersonalThoughts", "NeedRun", 6);
}


void func_monster(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);

StartPlayerLookAt("level_wood_1",10.0f,10.0f,"");

SetEntityActive("enemy_suitor_1", true);

PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);

AddPlayerBodyForce(0, 99000, -99000, false);

AddTimer("", 0.01, "Fade");
}

void Fade(string &in asTimer)
{
FadeIn(2.0f);
}
What's wrong with that fade?


12-30-2011, 09:46 AM
Find
Dobbydoo Offline
Member

Posts: 50
Threads: 6
Joined: Aug 2011
Reputation: 0
#3
RE: Capture scene problems

You don't have a FadeOut in your script, so you can't use FadeIn. FadeIn just makes the screen normal.
12-30-2011, 09:51 AM
Find
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#4
RE: Capture scene problems

(12-30-2011, 09:51 AM)Dobbydoo Wrote: You don't have a FadeOut in your script, so you can't use FadeIn. FadeIn just makes the screen normal.
-_- omg im so dumb i thought the fadein made the screen go black all this time

[Image: qg_logo.png]
12-30-2011, 09:53 AM
Find




Users browsing this thread: 2 Guest(s)